Trait std::clone::DeepClone

pub trait DeepClone {
    fn deep_clone(&self) -> Self;
}

A trait distinct from Clone which represents "deep copies" of things like managed boxes which would otherwise not be copied.

Required Methods

fn deep_clone(&self) -> Self

Return a deep copy of the value. Unlike Clone, the contents of shared pointer types are copied.

Implementors