[][src]Trait try_traits::clone::TryClone

pub trait TryClone: Sized {
    type Error;
    fn try_clone(&self) -> Result<Self, Self::Error>;

    fn try_clone_from(&mut self, source: &Self) -> Result<(), Self::Error> { ... }
}

The try trait for Clone.

Associated Types

type Error

The type returned in the event of an error.

Loading content...

Required methods

fn try_clone(&self) -> Result<Self, Self::Error>

The fallible equivalent of Clone::clone.

Loading content...

Provided methods

fn try_clone_from(&mut self, source: &Self) -> Result<(), Self::Error>

The fallible equivalent of Clone::clone_from.

Loading content...

Implementors

impl<T: Clone> TryClone for T[src]

type Error = Infallible

Loading content...