Trait HasParentMut

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

Gets the parent of the object.

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§

Source§

impl<Parent, Value> HasParentMut for Visitor<Parent, Value>
where Self: KnowsVisitor, Self::VisitorMut: UnsafeFrom<Parent>, Parent: Clone,