pub trait TryClone: Sized {
    fn try_clone(&self) -> Option<Self>;
}

Required methods

Implementors

A trait that tries cloning an object and returns an option with the variant depending on the result.