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§
Implementations§
Trait Implementations§
Source§impl<N, T> Ord for ParseTree<N, T>
impl<N, T> Ord for ParseTree<N, T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<N, T> PartialOrd for ParseTree<N, T>where
N: PartialOrd,
T: PartialOrd,
impl<N, T> PartialOrd for ParseTree<N, T>where
N: PartialOrd,
T: PartialOrd,
impl<N, T> Eq for ParseTree<N, T>
impl<N, T> StructuralPartialEq for ParseTree<N, T>
Auto Trait Implementations§
impl<N, T> Freeze for ParseTree<N, T>
impl<N, T> RefUnwindSafe for ParseTree<N, T>where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for ParseTree<N, T>
impl<N, T> Sync for ParseTree<N, T>
impl<N, T> Unpin for ParseTree<N, T>
impl<N, T> UnwindSafe for ParseTree<N, T>where
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more