Skip to main content

TryClone

Trait TryClone 

Source
pub trait TryClone: Sized {
    type Error;

    // Required method
    fn try_clone(&self) -> Result<Self, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TryClone for SortOrder

Source§

type Error = !

Source§

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

Source§

impl TryClone for String

Source§

type Error = !

Source§

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

Source§

impl TryClone for bool

Source§

type Error = !

Source§

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

Source§

impl TryClone for char

Source§

type Error = !

Source§

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

Source§

impl TryClone for f32

Source§

type Error = !

Source§

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

Source§

impl TryClone for f64

Source§

type Error = !

Source§

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

Source§

impl TryClone for i8

Source§

type Error = !

Source§

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

Source§

impl TryClone for i16

Source§

type Error = !

Source§

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

Source§

impl TryClone for i32

Source§

type Error = !

Source§

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

Source§

impl TryClone for i64

Source§

type Error = !

Source§

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

Source§

impl TryClone for i128

Source§

type Error = !

Source§

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

Source§

impl TryClone for isize

Source§

type Error = !

Source§

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

Source§

impl TryClone for u8

Source§

type Error = !

Source§

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

Source§

impl TryClone for u16

Source§

type Error = !

Source§

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

Source§

impl TryClone for u32

Source§

type Error = !

Source§

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

Source§

impl TryClone for u64

Source§

type Error = !

Source§

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

Source§

impl TryClone for u128

Source§

type Error = !

Source§

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

Source§

impl TryClone for usize

Source§

type Error = !

Source§

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

Source§

impl<A, B> TryClone for (A, B)
where A: TryClone, B: TryClone<Error = A::Error>,

Source§

type Error = <A as TryClone>::Error

Source§

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

Source§

impl<T, E> TryClone for Result<T, E>
where T: TryClone, E: TryClone<Error = T::Error>,

Source§

type Error = <T as TryClone>::Error

Source§

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

Source§

impl<T> TryClone for Arc<T>

Arc clones are refcount bumps — no allocation, never fails.

Source§

type Error = !

Source§

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

Source§

impl<T> TryClone for Option<T>
where T: TryClone,

Source§

type Error = <T as TryClone>::Error

Source§

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

Implementors§