Trait lrs::clone::MaybeClone

Objects that can be duplicated.

Syntax

trait MaybeClone {
    /* Required methods */
    fn maybe_clone(&self) -> Result<Self, Errno>
}

Methods

ReceiverNameDescription
&selfmaybe_clone

Clones the value.

Remarks

Duplication might not succeed (e.g. out of memory) in which case an error is returned.