StealthClone

Trait StealthClone 

Source
pub trait StealthClone {
    // Required method
    fn stealth_clone(&self) -> Self;
}
Expand description

Stealth clone

Required Methods§

Source

fn stealth_clone(&self) -> Self

Clone without increment the atomic destructor counter.

Items that are stealth cloned, NOT decrement the counter when dropped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§