Trait std::clone::Clone

pub trait Clone {
    fn clone(&self) -> Self;
}

A common trait for cloning an object.

Required Methods

fn clone(&self) -> Self

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

Implementors