[][src]Struct antlr_rust::tree::LeafNode

pub struct LeafNode<'input, Node: ParserNodeType<'input>, T: 'static> {
    pub symbol: <Node::TF as TokenFactory<'input>>::Tok,
    // some fields omitted
}

Generic leaf AST node

Fields

symbol: <Node::TF as TokenFactory<'input>>::Tok

Token, this leaf consist of

Implementations

impl<'input, Node: ParserNodeType<'input>, T: 'static> LeafNode<'input, Node, T>[src]

pub fn new(symbol: <Node::TF as TokenFactory<'input>>::Tok) -> Self[src]

creates new leaf node

Trait Implementations

impl<'input, Node: ParserNodeType<'input>, T: 'static> CustomRuleContext<'input> for LeafNode<'input, Node, T>[src]

type TF = Node::TF

type Ctx = Node

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

impl<'input, Node: ParserNodeType<'input>, T: 'static> Debug for LeafNode<'input, Node, T>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> NodeText for LeafNode<'input, Node, T>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> ParseTree<'input> for LeafNode<'input, Node, T>[src]

impl<'input, Node: ParserNodeType<'input> + TidAble<'input>, T: 'static + TidAble<'input>> ParserRuleContext<'input> for LeafNode<'input, Node, T>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> RuleContext<'input> for LeafNode<'input, Node, T>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> TidAble<'input> for LeafNode<'input, Node, T> where
    Node: TidAble<'input>, 
[src]

type Static = __LeafNodeinputNodeT_should_never_exist<Node::Static, T>

impl<'input, Node: ParserNodeType<'input>, T: 'static> Tree<'input> for LeafNode<'input, Node, T>[src]

Auto Trait Implementations

impl<'input, Node, T> RefUnwindSafe for LeafNode<'input, Node, T> where
    T: RefUnwindSafe,
    <<Node as ParserNodeType<'input>>::TF as TokenFactory<'input>>::Tok: RefUnwindSafe
[src]

impl<'input, Node, T> Send for LeafNode<'input, Node, T> where
    T: Send,
    <<Node as ParserNodeType<'input>>::TF as TokenFactory<'input>>::Tok: Send
[src]

impl<'input, Node, T> Sync for LeafNode<'input, Node, T> where
    T: Sync,
    <<Node as ParserNodeType<'input>>::TF as TokenFactory<'input>>::Tok: Sync
[src]

impl<'input, Node, T> Unpin for LeafNode<'input, Node, T> where
    T: Unpin,
    <<Node as ParserNodeType<'input>>::TF as TokenFactory<'input>>::Tok: Unpin
[src]

impl<'input, Node, T> UnwindSafe for LeafNode<'input, Node, T> where
    T: UnwindSafe,
    <<Node as ParserNodeType<'input>>::TF as TokenFactory<'input>>::Tok: UnwindSafe
[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.