[][src]Enum simple_parser_bootstrap::ParseTree

pub enum ParseTree<N, T> {
    Token {
        token: Token<T>,
    },
    Nonterminal {
        nonterminal: N,
        tokens: Vec<Token<T>>,
        children: Vec<ParseTree<N, T>>,
    },
    Ephemeral {
        tokens: Vec<Token<T>>,
        children: Vec<ParseTree<N, T>>,
    },
}

Variants

Token

Fields of Token

token: Token<T>
Nonterminal

Fields of Nonterminal

nonterminal: Ntokens: Vec<Token<T>>children: Vec<ParseTree<N, T>>
Ephemeral

Fields of Ephemeral

tokens: Vec<Token<T>>children: Vec<ParseTree<N, T>>

Implementations

impl<N, T> ParseTree<N, T>[src]

pub fn tokens_len(&self) -> usize[src]

Trait Implementations

impl<N: Clone, T: Clone> Clone for ParseTree<N, T>[src]

impl<N: Debug, T: Debug> Debug for ParseTree<N, T>[src]

impl<N: Eq, T: Eq> Eq for ParseTree<N, T>[src]

impl<N: Ord, T: Ord> Ord for ParseTree<N, T>[src]

impl<N: PartialEq, T: PartialEq> PartialEq<ParseTree<N, T>> for ParseTree<N, T>[src]

impl<N: PartialOrd, T: PartialOrd> PartialOrd<ParseTree<N, T>> for ParseTree<N, T>[src]

impl<N, T> StructuralEq for ParseTree<N, T>[src]

impl<N, T> StructuralPartialEq for ParseTree<N, T>[src]

Auto Trait Implementations

impl<N, T> RefUnwindSafe for ParseTree<N, T> where
    N: RefUnwindSafe,
    T: RefUnwindSafe

impl<N, T> Send for ParseTree<N, T> where
    N: Send,
    T: Send

impl<N, T> Sync for ParseTree<N, T> where
    N: Sync,
    T: Sync

impl<N, T> Unpin for ParseTree<N, T> where
    N: Unpin,
    T: Unpin

impl<N, T> UnwindSafe for ParseTree<N, T> where
    N: UnwindSafe,
    T: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,