pub enum LexerCommand {
Skip,
Channel(String),
Mode(String),
Type(String),
PushMode(String),
PopMode,
More,
}Expand description
Lexer command (e.g., skip, channel, mode, type)
Variants§
Skip
Skip this token
Channel(String)
Send to a channel
Mode(String)
Switch to a mode
Type(String)
Change token type
PushMode(String)
Push mode
PopMode
Pop mode
More
More (continue current token)
Trait Implementations§
Source§impl Clone for LexerCommand
impl Clone for LexerCommand
Source§fn clone(&self) -> LexerCommand
fn clone(&self) -> LexerCommand
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 LexerCommand
impl Debug for LexerCommand
Source§impl<'de> Deserialize<'de> for LexerCommand
impl<'de> Deserialize<'de> for LexerCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LexerCommand
impl PartialEq for LexerCommand
Source§impl Serialize for LexerCommand
impl Serialize for LexerCommand
impl Eq for LexerCommand
impl StructuralPartialEq for LexerCommand
Auto Trait Implementations§
impl Freeze for LexerCommand
impl RefUnwindSafe for LexerCommand
impl Send for LexerCommand
impl Sync for LexerCommand
impl Unpin for LexerCommand
impl UnsafeUnpin for LexerCommand
impl UnwindSafe for LexerCommand
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