Skip to main content

TryClone

Trait TryClone 

Source
pub trait TryClone: Sized {
    type Error: Debug;

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

This is the failable version of the standard Clone trait.

Required Associated Types§

Source

type Error: Debug

The error type to be returned by try_clone().

Required Methods§

Source

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

This is the failable version of the standard clone() function.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<K, V> TryClone for SQLiteMap<K, V>
where K: Type, V: Type,

Source§

impl<T> TryClone for SQLiteSet<T>
where T: Type,