Trait is_tree::traits::has_parent::UnsafeHasParent
source · pub unsafe trait UnsafeHasParent: Sized {
// Required method
unsafe fn parent_mut(&mut self) -> Option<Self>;
}
Expand description
A trait for objects that have a parent mutably. By design, accessing a Visitor parent is unsafe.
Required Methods§
sourceunsafe fn parent_mut(&mut self) -> Option<Self>
unsafe fn parent_mut(&mut self) -> Option<Self>
Gets the parent of the object.
Object Safety§
This trait is not object safe.