#[clone_dyn]Expand description
Derive macro for CloneDyn trait.
It is a procedural macro that generates an implementation of the CloneDyn trait for a given type.
ยงSample.
#[ cfg( feature = "derive_clone_dyn" ) ]
#[ clone_dyn ]
pub trait Trait1
{
fn f1( &self );
}
#[ cfg( feature = "derive_clone_dyn" ) ]
#[ clone_dyn ]
pub trait Trait2: Trait1
{
fn f2( &self );
}To learn more about the feature, study the module clone_dyn.