Trait clone_fields::CloneFrom
source · pub trait CloneFrom<T> {
fn clone_from(other: &T) -> Self;
}Expand description
Construct a type from another by cloning its fields.
It is automatically implemented for any clonable type, i.e. CloneFrom<T> for T where
T: Clone.
Required Methods
sourcefn clone_from(other: &T) -> Self
fn clone_from(other: &T) -> Self
Constructs Self from another type by cloning its fields.