Trait HasParent

Source
pub trait HasParent: KnowsVisitor {
    // Required method
    fn parent(&self) -> Option<Self::Visitor>;
}
Expand description

A trait for objects that have a parent.

Required Methods§

Source

fn parent(&self) -> Option<Self::Visitor>

Gets the parent of the object.

Implementations on Foreign Types§

Source§

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

Source§

fn parent(&self) -> Option<Self::Visitor>

Implementors§

Source§

impl<Parent, Value> HasParent for Visitor<Parent, Value>
where Self: KnowsVisitor, Parent: Clone + Into<Self::Visitor>,