Trait UnsafeClone

Source
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§

Source

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.

Implementors§

Source§

impl<'a, Parent, Value> UnsafeClone for Visitor<Parent, &'a Value>
where Parent: Clone,

Source§

impl<Parent, Value> UnsafeClone for Visitor<Parent, &mut Value>
where Parent: Clone,