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§
Sourcetype Error: Debug
type Error: Debug
The error type to be returned by try_clone().
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".