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

Constructs Self from another type by cloning its fields.

Implementors