pub unsafe trait UnsafeClone {
// Required method
unsafe fn unsafe_clone(&self) -> Self;
}
Expand description
This is required to generalize TreeIterator with a single ::new method.
Required Methods§
Sourceunsafe fn unsafe_clone(&self) -> Self
unsafe fn unsafe_clone(&self) -> Self
Clones the object.
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.