[][src]Trait antlr_rust::tree::Tree

pub trait Tree<'input>: NodeText + RuleContext<'input> {
    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
, { ... } }

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, 

Loading content...

Implementors

impl<'input, Ctx: CustomRuleContext<'input>> Tree<'input> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input>> Tree<'input> for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> Tree<'input> for LeafNode<'input, Node, T>[src]

impl<'input, T, I: ?Sized> Tree<'input> for T where
    T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
    I: ParserRuleContext<'input> + 'input, 
[src]

Loading content...