How to make a trait (and a struct implementing it) clonable?
The compiler tells you that trait Clone is not satisfied for Box<dyn T>. To get around this, what you can do is: trait T: Clone {} This will force all …
How to make a trait (and a struct implementing it) clonable? Read More »