[][src]Trait antlr_rust::parser::ParserNodeType

pub trait ParserNodeType<'input>: TidAble<'input> + Sized {
    type TF: TokenFactory<'input> + 'input;
    type Type: ?Sized + ParserRuleContext<'input, Ctx = Self, TF = Self::TF> + 'input;
    type Visitor: ?Sized + ParseTreeVisitor<'input, Self>;
}

Workaround trait for rustc current limitations.

Basically you can consider it as if context trait for generated parser has been implemented as

trait GenratedParserContext:ParserRuleContext<Ctx=dyn GeneratedParserContext>{ ... }

which is not possible, hence this a bit ugly workaround.

Associated Types

type TF: TokenFactory<'input> + 'input

type Type: ?Sized + ParserRuleContext<'input, Ctx = Self, TF = Self::TF> + 'input

type Visitor: ?Sized + ParseTreeVisitor<'input, Self>

Loading content...

Implementors

impl<'a, TF: TokenFactory<'a>> ParserNodeType<'a> for EmptyContextType<'a, TF>[src]

type TF = TF

type Type = dyn ParserRuleContext<'a, TF = Self::TF, Ctx = Self> + 'a

type Visitor = dyn ParseTreeVisitor<'a, Self> + 'a

Loading content...