pub trait IntoCloned<T> {
// Required methods
fn clone_to(self, target: &mut T);
fn into_cloned(self) -> T;
}Expand description
Trait for generalization of Clone that can reuse an existing object.
Required Methods§
Sourcefn clone_to(self, target: &mut T)
fn clone_to(self, target: &mut T)
Moves an existing object or clones from a reference to the target object.
Sourcefn into_cloned(self) -> T
fn into_cloned(self) -> T
Returns an existing object or a new clone from a reference.