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

pub trait RuleContextExt<'input>: ParserRuleContext<'input> {
    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>>
;
fn accept_children<V: ?Sized>(&self, visitor: &mut V)
    where
        V: ParseTreeVisitor<'input, Self::Ctx>,
        <Self::Ctx as ParserNodeType<'input>>::Type: Visitable<V>
; }

Required methods

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

fn accept_children<V: ?Sized>(&self, visitor: &mut V) where
    V: ParseTreeVisitor<'input, Self::Ctx>,
    <Self::Ctx as ParserNodeType<'input>>::Type: Visitable<V>, 

Loading content...

Implementors

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

Loading content...