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

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

Extention trait implemented for all ParserRuleContexts

Required methods

Prints list of parent rules

Implementors