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
fn clone(self) -> Self
fn clone(self) -> Self
Clone self into a new value of the same type.