Enum lexer::Kind[][src]

#[non_exhaustive]
pub enum Kind {
Show 108 variants Unknown, EOF, WhiteSpace, LineTerminator, Comment, MultilineComment, Ident, Await, Break, Case, Catch, Class, Const, Continue, Debugger, DefaulT, Delete, Do, Else, Enum, Export, Extends, FinallY, For, Function, If, Import, In, Instanceof, New, Return, Super, Switch, This, Throw, Try, Typeof, Var, Void, While, With, Yield, Amp, Amp2, Amp2Eq, AmpEq, Bang, Caret, CaretEq, Colon, Comma, Dot, Dot3, Eq, Eq2, Eq3, FatArrow, GtEq, LAngle, LBrack, LCurly, LParen, LtEq, Minus, Minus2, MinusEq, Neq, Neq2, Percent, PercentEq, Pipe, Pipe2, Pipe2Eq, PipeEq, Plus, Plus2, PlusEq, Question, Question2, Question2Eq, QuestionDot, RAngle, RBrack, RCurly, RParen, Semicolon, ShiftLeft, ShiftLeftEq, ShiftRight, ShiftRight3, ShiftRight3Eq, ShiftRightEq, Slash, SlashEq, Star, Star2, Star2Eq, StarEq, Tilde, Null, Undefined, True, False, Number(Number), Str, Regex, Template, Hash,
}

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Unknown

EOF

WhiteSpace

LineTerminator

Comment

MultilineComment

Ident

Await

Break

Case

Catch

Class

Const

Continue

Debugger

DefaulT

Delete

Do

Else

Enum

Export

Extends

FinallY

For

Function

If

Import

In

Instanceof

New

Return

Super

Switch

This

Throw

Try

Typeof

Var

Void

While

With

Yield

Amp

Amp2

Amp2Eq

AmpEq

Bang

Caret

CaretEq

Colon

Comma

Dot

Dot3

Eq

Eq2

Eq3

FatArrow

GtEq

LAngle

LBrack

LCurly

LParen

LtEq

Minus

Minus2

MinusEq

Neq

Neq2

Percent

PercentEq

Pipe

Pipe2

Pipe2Eq

PipeEq

Plus

Plus2

PlusEq

Question

Question2

Question2Eq

QuestionDot

RAngle

RBrack

RCurly

RParen

Semicolon

ShiftLeft

ShiftLeftEq

ShiftRight

ShiftRight3

ShiftRight3Eq

ShiftRightEq

Slash

SlashEq

Star

Star2

Star2Eq

StarEq

Tilde

Null

Undefined

True

False

Number(Number)

Tuple Fields

0: Number

Str

Regex

Template

Hash

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.