Trait kompact::prelude::TryClone

source ·
pub trait TryClone: Sized {
    // Required method
    fn try_clone(&self) -> Result<Self, SerError>;
}
Expand description

A fallable version of the Clone trait

Required Methods§

source

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

Tries to produce a copy of self or returns an error

Implementors§