pub enum Token {
Show 119 variants And, AndAnd, AndEq, At, Backslash, BitCharacterCode7(String), BitCharacterCode8(String), BlockCommentStart(String), BlockCommentStop(String), BracketLeft, BracketRight, Byte(String), ByteString(String), Caret, CaretEq, CarriageReturn, Character(String), Colon, Comma, CurlyBraceLeft, CurlyBraceRight, Dollar, Dot, DotDot, DotDotDot, DotDotEq, DoubleQuote, Eq, EqEq, Ge, Gt, FatArrow, InnerBlockDoc(String), InnerLineDoc(String), Le, LineComment(String), Lt, Minus, MinusEq, Or, OrEq, OrOr, OuterBlockDoc(String), OuterLineDoc(String), Newline, Not, NotEq, Null, Floating(String), Numeric(String), ParenLeft, ParenRight, PathSep, Percent, PercentEq, Plus, PlusEq, Pound, Question, RArrow, RawString(String), RawByteString(String), Semi, Shl, ShlEq, Shr, ShrEq, SingleQuote, Slash, SlashEq, Star, StarEq, Stopped(String), String(String), Tab, Undefined, Underscore, WhiteSpace, Word(String), KW_As, KW_Async, KW_Await, KW_Break, KW_Const, KW_Contine, KW_Crate, KW_Dyn, KW_Else, KW_Enum, KW_Extern, KW_False, KW_Fn, KW_For, KW_If, KW_Impl, KW_In, KW_Let, KW_Loop, KW_Match, KW_Mod, KW_Move, KW_Mut, KW_Pub, KW_Ref, KW_Return, KW_SELF, KW_Self, KW_Static, KW_Struct, KW_Super, KW_Trait, KW_True, KW_Type, KW_Union, KW_Unsafe, KW_Use, KW_UserDefined(String), KW_Where, KW_While,
}
Expand description

Token field and description for lexical_scanner

Variants

And

AndAnd

AndEq

At

Backslash

BitCharacterCode7(String)

BitCharacterCode8(String)

BlockCommentStart(String)

BlockCommentStop(String)

BracketLeft

BracketRight

Byte(String)

ByteString(String)

Caret

CaretEq

CarriageReturn

Character(String)

Colon

Comma

CurlyBraceLeft

CurlyBraceRight

Dollar

Dot

DotDot

DotDotDot

DotDotEq

DoubleQuote

Eq

EqEq

Ge

Gt

FatArrow

InnerBlockDoc(String)

InnerLineDoc(String)

Le

LineComment(String)

Lt

Minus

MinusEq

Or

OrEq

OrOr

OuterBlockDoc(String)

OuterLineDoc(String)

Newline

Not

NotEq

Null

Floating(String)

Numeric(String)

ParenLeft

ParenRight

PathSep

Percent

PercentEq

Plus

PlusEq

Pound

Question

RArrow

RawString(String)

RawByteString(String)

Semi

Shl

ShlEq

Shr

ShrEq

SingleQuote

Slash

SlashEq

Star

StarEq

Stopped(String)

String(String)

Tab

Undefined

Underscore

WhiteSpace

Word(String)

KW_As

KW_Async

KW_Await

KW_Break

KW_Const

KW_Contine

KW_Crate

KW_Dyn

KW_Else

KW_Enum

KW_Extern

KW_False

KW_Fn

KW_For

KW_If

KW_Impl

KW_In

KW_Let

KW_Loop

KW_Match

KW_Mod

KW_Move

KW_Mut

KW_Pub

KW_Ref

KW_Return

KW_SELF

KW_Self

KW_Static

KW_Struct

KW_Super

KW_Trait

KW_True

KW_Type

KW_Union

KW_Unsafe

KW_Use

KW_UserDefined(String)

KW_Where

KW_While

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.