Trait HasRootMut

Source
pub unsafe trait HasRootMut: KnowsVisitor {
    // Required method
    unsafe fn root_mut(&mut self) -> Self::VisitorMut;
}
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::VisitorMut

Gets the root of the object.

Implementations on Foreign Types§

Source§

impl<T> HasRootMut for Box<T>
where T: HasRootMut,

Source§

unsafe fn root_mut(&mut self) -> Self::VisitorMut

Implementors§

Source§

impl<Parent, Value> HasRootMut for Visitor<Parent, Value>
where Self: KnowsVisitor, Parent: HasRootMut, Parent::VisitorMut: Into<Self::VisitorMut>,