[][src]Struct antlr_rust::parser_rule_context::BaseParserRuleContext

pub struct BaseParserRuleContext<'input, Ctx: CustomRuleContext<'input>> {
    pub exception: Option<Box<ANTLRError>>,
    // some fields omitted
}

Default rule context implementation that keeps everything provided by parser

Fields

exception: Option<Box<ANTLRError>>

error if there was any in this node

Implementations

impl<'input, Ctx: CustomRuleContext<'input> + 'input> BaseParserRuleContext<'input, Ctx>[src]

pub fn new_parser_ctx(
    parent_ctx: Option<Rc<<Ctx::Ctx as ParserNodeType<'input>>::Type>>,
    invoking_state: isize,
    ext: Ctx
) -> Self
[src]

pub fn copy_from<T: ParserRuleContext<'input, TF = Ctx::TF, Ctx = Ctx::Ctx> + ?Sized>(
    ctx: &T,
    ext: Ctx
) -> Self
[src]

Trait Implementations

impl<'input, Ctx: CustomRuleContext<'input>> Borrow<Ctx> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input>> BorrowMut<Ctx> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input>> CustomRuleContext<'input> for BaseParserRuleContext<'input, Ctx>[src]

type TF = Ctx::TF

type Ctx = Ctx::Ctx

Type that describes type of context nodes, stored in this context

impl<'input, Ctx: CustomRuleContext<'input>> Debug for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input>> Deref for BaseParserRuleContext<'input, Ctx>[src]

type Target = Ctx

The resulting type after dereferencing.

impl<'input, Ctx: CustomRuleContext<'input>> DerefMut for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input> + TidAble<'input>> ParseTree<'input> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input> + TidAble<'input>> ParserRuleContext<'input> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input>> RuleContext<'input> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx: CustomRuleContext<'input>> TidAble<'input> for BaseParserRuleContext<'input, Ctx> where
    Ctx: TidAble<'input>, 
[src]

type Static = __BaseParserRuleContextinputCtx_should_never_exist<Ctx::Static>

impl<'input, Ctx: CustomRuleContext<'input>> Tree<'input> for BaseParserRuleContext<'input, Ctx>[src]

Auto Trait Implementations

impl<'input, Ctx> !RefUnwindSafe for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx> !Send for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx> !Sync for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, Ctx> Unpin for BaseParserRuleContext<'input, Ctx> where
    Ctx: Unpin,
    <<Ctx as CustomRuleContext<'input>>::TF as TokenFactory<'input>>::Tok: Unpin
[src]

impl<'input, Ctx> !UnwindSafe for BaseParserRuleContext<'input, Ctx>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> NodeText for T[src]

impl<'input, T> NodeText for T where
    T: CustomRuleContext<'input>, 
[src]

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

impl<'a, T> Tid<'a> for T where
    T: TidAble<'a> + ?Sized
[src]

impl<'a, X> TidExt<'a> for X where
    X: Tid<'a> + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.