Trait is_tree::traits::has_root::UnsafeHasRoot

source ·
pub unsafe trait UnsafeHasRoot: Sized {
    // Required method
    unsafe fn root_mut(&mut self) -> Self;
}
Expand description

A trait for types that have a root mutably. By design, accessing a Visitor parent is unsafe.

Required Methods§

source

unsafe fn root_mut(&mut self) -> Self

Gets the root of the object.

Object Safety§

This trait is not object safe.

Implementors§