pub enum Symbol {
NonTerminal(NonTerminal),
Terminal(Terminal),
}Expand description
A Symbol can be a Terminal (a symbol that can appear in the final
expression generated by the grammar) or a NonTerminal (a symbol that
must be replaced further).
Variants
NonTerminal(NonTerminal)
Terminal(Terminal)
Trait Implementations
sourceimpl PartialEq<Symbol> for Symbol
impl PartialEq<Symbol> for Symbol
impl Eq for Symbol
impl StructuralEq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more