Trait HasRoot

Source
pub trait HasRoot: KnowsVisitor {
    // Required method
    fn root(&self) -> Self::Visitor;
}
Expand description

A trait for types that have a root.

Required Methods§

Source

fn root(&self) -> Self::Visitor

Gets the root of the object.

Implementations on Foreign Types§

Source§

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

Source§

fn root(&self) -> Self::Visitor

Implementors§

Source§

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