Enum pr47::syntax::token::TokenInner[][src]

pub enum TokenInner<'a> {
Show 86 variants Ident(&'a str), KwdAny, KwdAs, KwdAuto, KwdAwait, KwdBool, KwdCatch, KwdChar, KwdConst, KwdDo, KwdElse, KwdExport, KwdFalse, KwdFloat, KwdFunc, KwdIf, KwdImport, KwdInt, KwdObject, KwdOpen, KwdReturn, KwdSpawn, KwdString, KwdThrow, KwdTrue, KwdTry, KwdType, KwdTypeOf, KwdVar, KwdVector, KwdVoid, KwdWhile, LitChar(char), LitFloat(f64), LitInt(i64), LitStr(&'a str), RsvAsm, RsvAttribute, RsvCkx, RsvRefl, RsvRequire, RsymAt, RsymDollar, SymAmp, SymAster, SymAsterEq, SymBackslash, SymCaret, SymColon, SymComma, SymDAmp, SymDCaret, SymDColon, SymDEq, SymDGt, SymDLt, SymDPipe, SymDot, SymEq, SymExclaim, SymGe, SymGt, SymHash, SymLBrace, SymLBracket, SymLParen, SymLe, SymLt, SymMinus, SymMinusEq, SymNe, SymPercent, SymPercentEq, SymPipe, SymPlus, SymPlusEq, SymQues, SymQuesColon, SymRBrace, SymRBracket, SymRParen, SymSemicolon, SymSlash, SymSlashEq, SymTilde, EndOfInput,
}

Variants

Ident(&'a str)

Tuple Fields of Ident

0: &'a str
KwdAny
KwdAs
KwdAuto
KwdAwait
KwdBool
KwdCatch
KwdChar
KwdConst
KwdDo
KwdElse
KwdExport
KwdFalse
KwdFloat
KwdFunc
KwdIf
KwdImport
KwdInt
KwdObject
KwdOpen
KwdReturn
KwdSpawn
KwdString
KwdThrow
KwdTrue
KwdTry
KwdType
KwdTypeOf
KwdVar
KwdVector
KwdVoid
KwdWhile
LitChar(char)

Tuple Fields of LitChar

0: char
LitFloat(f64)

Tuple Fields of LitFloat

0: f64
LitInt(i64)

Tuple Fields of LitInt

0: i64
LitStr(&'a str)

Tuple Fields of LitStr

0: &'a str
RsvAsm
RsvAttribute
RsvCkx
RsvRefl
RsvRequire
RsymAt
RsymDollar
SymAmp
SymAster
SymAsterEq
SymBackslash
SymCaret
SymColon
SymComma
SymDAmp
SymDCaret
SymDColon
SymDEq
SymDGt
SymDLt
SymDPipe
SymDot
SymEq
SymExclaim
SymGe
SymGt
SymHash
SymLBrace
SymLBracket
SymLParen
SymLe
SymLt
SymMinus
SymMinusEq
SymNe
SymPercent
SymPercentEq
SymPipe
SymPlus
SymPlusEq
SymQues
SymQuesColon
SymRBrace
SymRBracket
SymRParen
SymSemicolon
SymSlash
SymSlashEq
SymTilde
EndOfInput

Implementations

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

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 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)

recently added

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.