Trait std::clone::Clone

pub trait Clone {
    /// Clone self into a new value of the same type.
    fn clone(self) -> Self;
}
Expand description

A common trait for the ability to explicitly duplicate an object.

Required Methods

Clone self into a new value of the same type.