pub enum NonTerminalType {
Star,
PlusLeft,
PlusRight,
Optional,
Augmented,
Error,
TerminalSet,
Lookahead,
Group,
LiteralString,
}Expand description
If the non-terminal is auto-generated, the pattern where this non-terminal was generated from.
Variants§
Star
zero or more repetitions
PlusLeft
one or more repetitions with left recursion
PlusRight
one or more repetitions with right recursion
Optional
zero or one repetition
Augmented
Augmented rule
Error
error recovery non-terminal
TerminalSet
terminal set enclosed in brackets ( [a-zA-Z0-9] )
Lookahead
rule with explicit lookaheads
Group
sequence of tokens enclosed in parentheses ( a B c … )
LiteralString
“abc” or b“abc“
Trait Implementations§
Source§impl Clone for NonTerminalType
impl Clone for NonTerminalType
Source§fn clone(&self) -> NonTerminalType
fn clone(&self) -> NonTerminalType
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 Debug for NonTerminalType
impl Debug for NonTerminalType
Source§impl PartialEq for NonTerminalType
impl PartialEq for NonTerminalType
impl Copy for NonTerminalType
impl Eq for NonTerminalType
impl StructuralPartialEq for NonTerminalType
Auto Trait Implementations§
impl Freeze for NonTerminalType
impl RefUnwindSafe for NonTerminalType
impl Send for NonTerminalType
impl Sync for NonTerminalType
impl Unpin for NonTerminalType
impl UnwindSafe for NonTerminalType
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