pub enum LexerAction {
Channel(i32),
Custom {
rule_index: i32,
action_index: i32,
},
Mode(i32),
More,
PopMode,
PushMode(i32),
Skip,
Type(i32),
}Expand description
Serialized lexer action attached to an action transition.
These actions are grammar-independent operations generated by ANTLR’s lexer
commands (skip, more, type, channel, pushMode, popMode, and
mode). Custom embedded actions are represented but intentionally inert
until a generated semantic-action hook exists.
Variants§
Trait Implementations§
Source§impl Clone for LexerAction
impl Clone for LexerAction
Source§fn clone(&self) -> LexerAction
fn clone(&self) -> LexerAction
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 LexerAction
impl Debug for LexerAction
Source§impl PartialEq for LexerAction
impl PartialEq for LexerAction
Source§fn eq(&self, other: &LexerAction) -> bool
fn eq(&self, other: &LexerAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LexerAction
impl StructuralPartialEq for LexerAction
Auto Trait Implementations§
impl Freeze for LexerAction
impl RefUnwindSafe for LexerAction
impl Send for LexerAction
impl Sync for LexerAction
impl Unpin for LexerAction
impl UnsafeUnpin for LexerAction
impl UnwindSafe for LexerAction
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