RuleContextExt

Trait RuleContextExt 

Source
pub trait RuleContextExt<'input>: ParserRuleContext<'input> {
    // Required method
    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>,
             Self: CoerceTo<Z>;
}
Expand description

Extention trait implemented for all ParserRuleContexts

Required Methods§

Source

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>, Self: CoerceTo<Z>,

Prints list of parent rules

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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