[][src]Trait antlr_rust::parser_rule_context::RuleContextExt

pub trait RuleContextExt<'input>: ParserRuleContext<'input> {
    pub fn to_string<Z: ?Sized>(
        self: &Rc<Self>,
        rule_names: Option<&[&str]>,
        stop: Option<Rc<Z>>
    ) -> String
    where
        Z: ParserRuleContext<'input, Ctx = Self::Ctx, TF = Self::TF> + 'input,
        Self::Ctx: ParserNodeType<'input, Type = Z>,
        Rc<Self>: CoerceUnsized<Rc<Z>>
; }

Extention trait implemented for all ParserRuleContexts

Required methods

pub fn to_string<Z: ?Sized>(
    self: &Rc<Self>,
    rule_names: Option<&[&str]>,
    stop: Option<Rc<Z>>
) -> String where
    Z: ParserRuleContext<'input, Ctx = Self::Ctx, TF = Self::TF> + 'input,
    Self::Ctx: ParserNodeType<'input, Type = Z>,
    Rc<Self>: CoerceUnsized<Rc<Z>>, 
[src]

Prints list of parent rules

Loading content...

Implementors

impl<'input, T: ParserRuleContext<'input> + ?Sized + 'input> RuleContextExt<'input> for T[src]

Loading content...