pub enum ParseTreeNode<'gram> {
Terminal(&'gram str),
Nonterminal(ParseTree<'gram>),
}Expand description
A node of a ParseTree, either terminating or continuing the ParseTree
Variants§
Trait Implementations§
Source§impl<'gram> Clone for ParseTreeNode<'gram>
impl<'gram> Clone for ParseTreeNode<'gram>
Source§fn clone(&self) -> ParseTreeNode<'gram>
fn clone(&self) -> ParseTreeNode<'gram>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'gram> Debug for ParseTreeNode<'gram>
impl<'gram> Debug for ParseTreeNode<'gram>
Source§impl<'gram> PartialEq for ParseTreeNode<'gram>
impl<'gram> PartialEq for ParseTreeNode<'gram>
impl<'gram> Eq for ParseTreeNode<'gram>
impl<'gram> StructuralPartialEq for ParseTreeNode<'gram>
Auto Trait Implementations§
impl<'gram> Freeze for ParseTreeNode<'gram>
impl<'gram> RefUnwindSafe for ParseTreeNode<'gram>
impl<'gram> Send for ParseTreeNode<'gram>
impl<'gram> Sync for ParseTreeNode<'gram>
impl<'gram> Unpin for ParseTreeNode<'gram>
impl<'gram> UnwindSafe for ParseTreeNode<'gram>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.