pub trait StealthClone {
// Required method
fn stealth_clone(&self) -> Self;
}Expand description
Stealth clone
Required Methods§
Sourcefn stealth_clone(&self) -> Self
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.