pub enum LexerTransition {
Epsilon {
target: usize,
},
Atom {
target: usize,
label: i32,
},
Range {
target: usize,
start: i32,
stop: i32,
},
Set {
target: usize,
set: IntervalSet,
},
NotSet {
target: usize,
set: IntervalSet,
},
Wildcard {
target: usize,
},
Rule {
target: usize,
rule_index: usize,
follow_state: usize,
precedence: i32,
},
Predicate {
target: usize,
rule_index: usize,
pred_index: usize,
context_dependent: bool,
},
Action {
target: usize,
rule_index: usize,
action_index: Option<usize>,
context_dependent: bool,
},
Precedence {
target: usize,
precedence: i32,
},
}Expand description
Edge between two ATN states.
Epsilon-like transitions do not consume input. Matching transitions compare the current input symbol against an atom, range, set, negated set, or wildcard.
Variants§
Implementations§
Source§impl LexerTransition
impl LexerTransition
Sourcepub const fn is_epsilon(&self) -> bool
pub const fn is_epsilon(&self) -> bool
Returns whether traversing this transition consumes no input.
Trait Implementations§
Source§impl Clone for LexerTransition
impl Clone for LexerTransition
Source§fn clone(&self) -> LexerTransition
fn clone(&self) -> LexerTransition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LexerTransition
impl Debug for LexerTransition
impl Eq for LexerTransition
Source§impl PartialEq for LexerTransition
impl PartialEq for LexerTransition
impl StructuralPartialEq for LexerTransition
Auto Trait Implementations§
impl Freeze for LexerTransition
impl RefUnwindSafe for LexerTransition
impl Send for LexerTransition
impl Sync for LexerTransition
impl Unpin for LexerTransition
impl UnsafeUnpin for LexerTransition
impl UnwindSafe for LexerTransition
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