Enum perplex_runtime::Symbol[][src]

pub enum Symbol<T, NT> {
    Terminal(T),
    Nonterminal(NT),
}

A symbol on the parse stack.

Generic over the type of terminal T and nonterminal NT.

Variants

Methods

impl<T, NT> Symbol<T, NT>
[src]

Return the terminal wrapped in this symbol.

Panics if the symbol is not a terminal.

Return the nonterminal wrapped in this symbol.

Panics if the symbol is not a nonterminal.

Auto Trait Implementations

impl<T, NT> Send for Symbol<T, NT> where
    NT: Send,
    T: Send

impl<T, NT> Sync for Symbol<T, NT> where
    NT: Sync,
    T: Sync