[][src]Struct antlr_rust::rule_context::BaseRuleContext

pub struct BaseRuleContext<'input, ExtCtx: CustomRuleContext<'input>> { /* fields omitted */ }

Minimal parse tree node implementation, that stores only data required for correct parsing

Implementations

impl<'input, ExtCtx: CustomRuleContext<'input>> BaseRuleContext<'input, ExtCtx>[src]

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

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

Trait Implementations

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

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

impl<'input, ExtCtx: CustomRuleContext<'input>> CustomRuleContext<'input> for BaseRuleContext<'input, ExtCtx>[src]

type TF = ExtCtx::TF

type Ctx = ExtCtx::Ctx

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

impl<'input, ExtCtx: CustomRuleContext<'input>> Debug for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input>> ParseTree<'input> for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input> + TidAble<'input>> ParserRuleContext<'input> for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input>> RuleContext<'input> for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input>> TidAble<'input> for BaseRuleContext<'input, ExtCtx> where
    ExtCtx: TidAble<'input>, 
[src]

type Static = __BaseRuleContextinputExtCtx_should_never_exist<ExtCtx::Static>

impl<'input, ExtCtx: CustomRuleContext<'input>> Tree<'input> for BaseRuleContext<'input, ExtCtx>[src]

Auto Trait Implementations

impl<'input, ExtCtx> !RefUnwindSafe for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx> !Send for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx> !Sync for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, ExtCtx> Unpin for BaseRuleContext<'input, ExtCtx> where
    ExtCtx: Unpin
[src]

impl<'input, ExtCtx> !UnwindSafe for BaseRuleContext<'input, ExtCtx>[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.