pub enum TokenType {
Show 123 variants
_Dummy,
EOF,
Ampersand,
AmpersandAmpersand,
AmpersandAmpersandEquals,
AmpersandEquals,
Asterisk,
AsteriskAsterisk,
AsteriskAsteriskEquals,
AsteriskEquals,
Bar,
BarBar,
BarBarEquals,
BarEquals,
BraceClose,
BraceOpen,
BracketClose,
BracketOpen,
Caret,
CaretEquals,
ChevronLeft,
ChevronLeftChevronLeft,
ChevronLeftChevronLeftEquals,
ChevronLeftEquals,
ChevronLeftSlash,
ChevronRight,
ChevronRightChevronRight,
ChevronRightChevronRightChevronRight,
ChevronRightChevronRightChevronRightEquals,
ChevronRightChevronRightEquals,
ChevronRightEquals,
Colon,
Comma,
CommentMultiple,
CommentSingle,
Dot,
DotDotDot,
Equals,
EqualsChevronRight,
EqualsEquals,
EqualsEqualsEquals,
Exclamation,
ExclamationEquals,
ExclamationEqualsEquals,
Hyphen,
HyphenEquals,
HyphenHyphen,
Identifier,
JsxTextContent,
KeywordAs,
KeywordAsync,
KeywordAwait,
KeywordBreak,
KeywordCase,
KeywordCatch,
KeywordClass,
KeywordConst,
KeywordConstructor,
KeywordContinue,
KeywordDebugger,
KeywordDefault,
KeywordDelete,
KeywordDo,
KeywordElse,
KeywordEnum,
KeywordExport,
KeywordExtends,
KeywordFinally,
KeywordFor,
KeywordFrom,
KeywordFunction,
KeywordGet,
KeywordIf,
KeywordImport,
KeywordIn,
KeywordInstanceof,
KeywordLet,
KeywordNew,
KeywordOf,
KeywordReturn,
KeywordSet,
KeywordStatic,
KeywordSuper,
KeywordSwitch,
KeywordThis,
KeywordThrow,
KeywordTry,
KeywordTypeof,
KeywordVar,
KeywordVoid,
KeywordWhile,
KeywordWith,
KeywordYield,
LiteralBigInt,
LiteralFalse,
LiteralNull,
LiteralNumber,
LiteralNumberHex,
LiteralNumberBin,
LiteralNumberOct,
LiteralRegex,
LiteralString,
LiteralTemplatePartString,
LiteralTemplatePartStringEnd,
LiteralTrue,
ParenthesisClose,
ParenthesisOpen,
Percent,
PercentEquals,
Plus,
PlusEquals,
PlusPlus,
PrivateMember,
Question,
QuestionDot,
QuestionDotBracketOpen,
QuestionDotParenthesisOpen,
QuestionQuestion,
QuestionQuestionEquals,
Semicolon,
Slash,
SlashEquals,
Tilde,
}
Variants§
_Dummy
EOF
Ampersand
AmpersandAmpersand
AmpersandAmpersandEquals
AmpersandEquals
Asterisk
AsteriskAsterisk
AsteriskAsteriskEquals
AsteriskEquals
Bar
BarBar
BarBarEquals
BarEquals
BraceClose
BraceOpen
BracketClose
BracketOpen
Caret
CaretEquals
ChevronLeft
ChevronLeftChevronLeft
ChevronLeftChevronLeftEquals
ChevronLeftEquals
ChevronLeftSlash
ChevronRight
ChevronRightChevronRight
ChevronRightChevronRightChevronRight
ChevronRightChevronRightChevronRightEquals
ChevronRightChevronRightEquals
ChevronRightEquals
Colon
Comma
CommentMultiple
CommentSingle
Dot
DotDotDot
Equals
EqualsChevronRight
EqualsEquals
EqualsEqualsEquals
Exclamation
ExclamationEquals
ExclamationEqualsEquals
Hyphen
HyphenEquals
HyphenHyphen
Identifier
JsxTextContent
KeywordAs
KeywordAsync
KeywordAwait
KeywordBreak
KeywordCase
KeywordCatch
KeywordClass
KeywordConst
KeywordConstructor
KeywordContinue
KeywordDebugger
KeywordDefault
KeywordDelete
KeywordDo
KeywordElse
KeywordEnum
KeywordExport
KeywordExtends
KeywordFinally
KeywordFor
KeywordFrom
KeywordFunction
KeywordGet
KeywordIf
KeywordImport
KeywordIn
KeywordInstanceof
KeywordLet
KeywordNew
KeywordOf
KeywordReturn
KeywordSet
KeywordStatic
KeywordSuper
KeywordSwitch
KeywordThis
KeywordThrow
KeywordTry
KeywordTypeof
KeywordVar
KeywordVoid
KeywordWhile
KeywordWith
KeywordYield
LiteralBigInt
LiteralFalse
LiteralNull
LiteralNumber
LiteralNumberHex
LiteralNumberBin
LiteralNumberOct
LiteralRegex
LiteralString
LiteralTemplatePartString
LiteralTemplatePartStringEnd
LiteralTrue
ParenthesisClose
ParenthesisOpen
Percent
PercentEquals
Plus
PlusEquals
PlusPlus
PrivateMember
Question
QuestionDot
QuestionDotBracketOpen
QuestionDotParenthesisOpen
QuestionQuestion
QuestionQuestionEquals
Semicolon
Slash
SlashEquals
Tilde
Trait Implementations§
Source§impl Ord for TokenType
impl Ord for TokenType
Source§impl PartialOrd for TokenType
impl PartialOrd for TokenType
impl Copy for TokenType
impl Eq for TokenType
impl StructuralPartialEq for TokenType
Auto Trait Implementations§
impl Freeze for TokenType
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
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