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§

source

unsafe fn parent_mut(&mut self) -> Option<Self>

Gets the parent of the object.

Object Safety§

This trait is not object safe.

Implementors§