pub enum TokenKind {
Show 82 variants
Name(String),
Integer(i64),
StringLit(String),
Module,
Import,
Const,
Enum,
Flags,
Type,
Packet,
Frame,
Capsule,
State,
Machine,
Transition,
Initial,
Terminal,
On,
Guard,
Action,
Delegate,
Match,
If,
Let,
Require,
StaticAssert,
Within,
Export,
Varint,
Bytes,
Bits,
Bit,
Fill,
Remaining,
True,
False,
Null,
And,
Or,
Not,
InState,
All,
LBrace,
RBrace,
LParen,
RParen,
LBracket,
RBracket,
Colon,
ColonColon,
Semicolon,
Comma,
Dot,
DotDot,
DotDotEq,
Arrow,
FatArrow,
Assign,
PlusAssign,
At,
LArrow,
Plus,
Minus,
Star,
Slash,
Percent,
Amp,
Pipe,
Caret,
Shl,
Shr,
Bang,
EqEq,
BangEq,
Lt,
Le,
Gt,
Ge,
QuestionQuestion,
Tilde,
TildeGt,
Eof,
}Variants§
Name(String)
Integer(i64)
StringLit(String)
Module
Import
Const
Enum
Flags
Type
Packet
Frame
Capsule
State
Machine
Transition
Initial
Terminal
On
Guard
Action
Delegate
Match
If
Let
Require
StaticAssert
Within
Export
Varint
Bytes
Bits
Bit
Fill
Remaining
True
False
Null
And
Or
Not
InState
All
LBrace
RBrace
LParen
RParen
LBracket
RBracket
Colon
ColonColon
Semicolon
Comma
Dot
DotDot
DotDotEq
Arrow
FatArrow
Assign
PlusAssign
At
LArrow
Plus
Minus
Star
Slash
Percent
Amp
Pipe
Caret
Shl
Shr
Bang
EqEq
BangEq
Lt
Le
Gt
Ge
QuestionQuestion
Tilde
TildeGt
Eof
Trait Implementations§
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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