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

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

Provided methods

pub fn get_parent(
    &self
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
[src]

pub fn has_parent(&self) -> bool[src]

pub fn get_payload(&self) -> Box<dyn Any>[src]

pub fn get_child(
    &self,
    _i: usize
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
[src]

pub fn get_child_count(&self) -> usize[src]

pub fn get_children<'a>(
    &'a self
) -> Box<dyn Iterator<Item = Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> + 'a> where
    'input: 'a, 
[src]

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...