pub enum Token {
Show 108 variants
EndOfProgram,
Semicolon,
Colon,
Comma,
ParenOpen,
ParenClose,
BracketOpen,
BracketClose,
BraceOpen,
BraceClose,
OperatorFatArrow,
OperatorNew,
OperatorIncrement,
OperatorDecrement,
OperatorLogicalNot,
OperatorBitwiseNot,
OperatorTypeof,
OperatorVoid,
OperatorDelete,
OperatorMultiplication,
OperatorDivision,
OperatorRemainder,
OperatorExponent,
OperatorAddition,
OperatorSubtraction,
OperatorBitShiftLeft,
OperatorBitShiftRight,
OperatorUBitShiftRight,
OperatorLesser,
OperatorLesserEquals,
OperatorGreater,
OperatorGreaterEquals,
OperatorInstanceof,
OperatorIn,
OperatorStrictEquality,
OperatorStrictInequality,
OperatorEquality,
OperatorInequality,
OperatorBitwiseAnd,
OperatorBitwiseXor,
OperatorBitwiseOr,
OperatorLogicalAnd,
OperatorLogicalOr,
OperatorConditional,
OperatorAssign,
OperatorAddAssign,
OperatorSubtractAssign,
OperatorExponentAssign,
OperatorMultiplyAssign,
OperatorDivideAssign,
OperatorRemainderAssign,
OperatorBSLAssign,
OperatorBSRAssign,
OperatorUBSRAssign,
OperatorBitAndAssign,
OperatorBitXorAssign,
OperatorBitOrAssign,
OperatorSpread,
DeclarationVar,
DeclarationLet,
DeclarationConst,
Break,
Do,
Case,
Else,
Catch,
Export,
Class,
Extends,
Return,
While,
Finally,
Super,
With,
Continue,
For,
Switch,
Yield,
Debugger,
Function,
This,
Default,
If,
Throw,
Import,
Try,
Static,
LiteralTrue,
LiteralFalse,
LiteralNull,
LiteralUndefined,
LiteralString,
LiteralNumber,
LiteralBinary,
LiteralRegEx,
ReservedEnum,
ReservedImplements,
ReservedPackage,
ReservedProtected,
ReservedInterface,
ReservedPrivate,
ReservedPublic,
Identifier,
Accessor,
TemplateOpen,
TemplateClosed,
UnexpectedToken,
UnexpectedEndOfProgram,
}
Variants
EndOfProgram
Semicolon
Colon
Comma
ParenOpen
ParenClose
BracketOpen
BracketClose
BraceOpen
BraceClose
OperatorFatArrow
OperatorNew
OperatorIncrement
OperatorDecrement
OperatorLogicalNot
OperatorBitwiseNot
OperatorTypeof
OperatorVoid
OperatorDelete
OperatorMultiplication
OperatorDivision
OperatorRemainder
OperatorExponent
OperatorAddition
OperatorSubtraction
OperatorBitShiftLeft
OperatorBitShiftRight
OperatorUBitShiftRight
OperatorLesser
OperatorLesserEquals
OperatorGreater
OperatorGreaterEquals
OperatorInstanceof
OperatorIn
OperatorStrictEquality
OperatorStrictInequality
OperatorEquality
OperatorInequality
OperatorBitwiseAnd
OperatorBitwiseXor
OperatorBitwiseOr
OperatorLogicalAnd
OperatorLogicalOr
OperatorConditional
OperatorAssign
OperatorAddAssign
OperatorSubtractAssign
OperatorExponentAssign
OperatorMultiplyAssign
OperatorDivideAssign
OperatorRemainderAssign
OperatorBSLAssign
OperatorBSRAssign
OperatorUBSRAssign
OperatorBitAndAssign
OperatorBitXorAssign
OperatorBitOrAssign
OperatorSpread
DeclarationVar
DeclarationLet
DeclarationConst
Break
Do
Case
Else
Catch
Export
Class
Extends
Return
While
Finally
Super
With
Continue
For
Switch
Yield
Debugger
Function
This
Default
If
Throw
Import
Try
Static
LiteralTrue
LiteralFalse
LiteralNull
LiteralUndefined
LiteralString
LiteralNumber
LiteralBinary
LiteralRegEx
ReservedEnum
ReservedImplements
ReservedPackage
ReservedProtected
ReservedInterface
ReservedPrivate
ReservedPublic
Identifier
Accessor
TemplateOpen
TemplateClosed
UnexpectedToken
UnexpectedEndOfProgram
Implementations
Trait Implementations
impl Copy for Token
impl StructuralPartialEq for Token
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more