pub enum TokenKind {
Show 101 variants
Integer,
Imaginary,
String,
RawString,
FormatStringStart,
FormatStringText,
FormatStringInterpolationStart,
FormatStringInterpolationEnd,
FormatStringEnd,
Char,
Boolean,
Float,
Identifier,
Comment,
DocComment,
FileComment,
Shebang,
Semicolon,
LeftParen,
RightParen,
LeftSquareBracket,
RightSquareBracket,
LeftCurlyBrace,
RightCurlyBrace,
LeftAngleBracket,
RightAngleBracket,
Arrow,
ArrowDouble,
Equal,
EqualDouble,
NotEqual,
GreaterThanOrEqual,
LessThanOrEqual,
Colon,
Pipe,
PipeDouble,
Pipeline,
Ampersand,
AmpersandDouble,
Plus,
Minus,
Star,
Slash,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
PercentEqual,
AmpersandEqual,
PipeEqual,
CaretEqual,
ShiftLeftEqual,
ShiftRightEqual,
AndNotEqual,
Caret,
Percent,
Bang,
QuestionMark,
Dot,
Comma,
Hash,
DotDot,
DotDotEqual,
Ellipsis,
Backtick,
ShiftLeft,
ShiftRight,
AndNot,
Function,
Let,
If,
Else,
Match,
Enum,
Struct,
Type,
Interface,
Impl,
Const,
Var,
Return,
Defer,
Import,
Mut,
Pub,
For,
In_,
While,
Loop,
Break,
Continue,
Select,
Task,
Try,
Recover,
Assert,
As,
Directive,
EOF,
Placeholder,
Error,
}Variants§
Integer
Imaginary
String
RawString
FormatStringStart
FormatStringText
FormatStringInterpolationStart
FormatStringInterpolationEnd
FormatStringEnd
Char
Boolean
Float
Identifier
Comment
DocComment
FileComment
Shebang
Semicolon
LeftParen
RightParen
LeftSquareBracket
RightSquareBracket
LeftCurlyBrace
RightCurlyBrace
LeftAngleBracket
RightAngleBracket
Arrow
ArrowDouble
Equal
EqualDouble
NotEqual
GreaterThanOrEqual
LessThanOrEqual
Colon
Pipe
PipeDouble
Pipeline
Ampersand
AmpersandDouble
Plus
Minus
Star
Slash
PlusEqual
MinusEqual
StarEqual
SlashEqual
PercentEqual
AmpersandEqual
PipeEqual
CaretEqual
ShiftLeftEqual
ShiftRightEqual
AndNotEqual
Caret
Percent
Bang
QuestionMark
Dot
Comma
Hash
DotDot
DotDotEqual
Ellipsis
Backtick
ShiftLeft
ShiftRight
AndNot
Function
Let
If
Else
Match
Enum
Struct
Type
Interface
Impl
Const
Var
Return
Defer
Import
Mut
Pub
For
In_
While
Loop
Break
Continue
Select
Task
Try
Recover
Assert
As
Directive
EOF
Placeholder
Error
Trait Implementations§
impl Copy for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Forget for TokenKind
impl Freeze for TokenKind
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToEcoString for T
impl<T> ToEcoString for T
Source§fn to_eco_string(&self) -> EcoString
fn to_eco_string(&self) -> EcoString
Converts the given value to an
EcoString.