Module :: clone_dyn
Derive to clone dyn structures.
The purpose of the crate is very simple, making dyn< Trait > clonable with minimum efforts and complexity, simply by applying to derive to the trait.
Alternative
There are few alternatives dyn-clone, https://github.com/kardeiz/objekt-clonable. Unlike alternatives, this solution is more compact and requires fewer efforts to use without loss of quality of the solution. Also, you can ask an inquiry and get answers, which is problematic in the case of alternatives.
Sample
use clone_dyn;
let vec = Vec::new;
let vec2 = vec.clone; /* <- it does not work without `clone_dyn` */
To add to your project
Try out from the repository