Trait Tree
Source pub trait Tree<'input>: RuleContext<'input> {
// Provided methods
fn get_parent(
&self,
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> { ... }
fn has_parent(&self) -> bool { ... }
fn get_payload(&self) -> Box<dyn Any> { ... }
fn get_child(
&self,
_i: usize,
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> { ... }
fn get_child_count(&self) -> usize { ... }
fn get_children<'a>(
&'a self,
) -> Box<dyn Iterator<Item = Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> + 'a>
where 'input: 'a { ... }
}