[−][src]Trait antlr_rust::tree::Tree
Provided methods
pub fn get_parent(
&self
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
[src]
&self
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
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]
&self,
_i: usize
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
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]
&'a self
) -> Box<dyn Iterator<Item = Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> + 'a> where
'input: 'a,
Implementors
impl<'input, Ctx: CustomRuleContext<'input>> Tree<'input> for BaseParserRuleContext<'input, Ctx>
[src]
pub fn get_parent(
&self
) -> Option<Rc<<Ctx::Ctx as ParserNodeType<'input>>::Type>>
[src]
&self
) -> Option<Rc<<Ctx::Ctx as ParserNodeType<'input>>::Type>>
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]
&self,
i: usize
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
pub fn get_child_count(&self) -> usize
[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]
T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
I: ParserRuleContext<'input> + 'input,
pub fn get_parent(&self) -> Option<Rc<<I::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<<I::Ctx as ParserNodeType<'input>>::Type>>
[src]
&self,
i: usize
) -> Option<Rc<<I::Ctx as ParserNodeType<'input>>::Type>>
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]
&'a self
) -> Box<dyn Iterator<Item = Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> + 'a> where
'input: 'a,