Enum naga::front::glsl::TokenValue[][src]

pub enum TokenValue {
Show 77 variants Identifier(String), FloatConstant(Float), IntConstant(Integer), BoolConstant(bool), Layout, In, Out, InOut, Uniform, Buffer, Const, Restrict, StorageAccess(StorageAccess), Interpolation(Interpolation), Sampling(Sampling), Precision, PrecisionQualifier(Precision), Continue, Break, Return, Discard, If, Else, Switch, Case, Default, While, Do, For, Void, Struct, TypeName(Type), Assign, AddAssign, SubAssign, MulAssign, DivAssign, ModAssign, LeftShiftAssign, RightShiftAssign, AndAssign, XorAssign, OrAssign, Increment, Decrement, LogicalOr, LogicalAnd, LogicalXor, LessEqual, GreaterEqual, Equal, NotEqual, LeftShift, RightShift, LeftBrace, RightBrace, LeftParen, RightParen, LeftBracket, RightBracket, LeftAngle, RightAngle, Comma, Semicolon, Colon, Dot, Bang, Dash, Tilde, Plus, Star, Slash, Percent, VerticalBar, Caret, Ampersand, Question,
}
Expand description

A token passed from the lexing used in the parsing

This type is exported since it’s returned in the InvalidToken error.

Variants

Identifier(String)

Tuple Fields of Identifier

0: String
FloatConstant(Float)

Tuple Fields of FloatConstant

0: Float
IntConstant(Integer)

Tuple Fields of IntConstant

0: Integer
BoolConstant(bool)

Tuple Fields of BoolConstant

0: bool
Layout
In
Out
InOut
Uniform
Buffer
Const
Restrict
StorageAccess(StorageAccess)

Tuple Fields of StorageAccess

0: StorageAccess
Interpolation(Interpolation)

Tuple Fields of Interpolation

0: Interpolation
Sampling(Sampling)

Tuple Fields of Sampling

0: Sampling
Precision
PrecisionQualifier(Precision)

Tuple Fields of PrecisionQualifier

0: Precision
Continue
Break
Return
Discard
If
Else
Switch
Case
Default
While
Do
For
Void
Struct
TypeName(Type)

Tuple Fields of TypeName

0: Type
Assign
AddAssign
SubAssign
MulAssign
DivAssign
ModAssign
LeftShiftAssign
RightShiftAssign
AndAssign
XorAssign
OrAssign
Increment
Decrement
LogicalOr
LogicalAnd
LogicalXor
LessEqual
GreaterEqual
Equal
NotEqual
LeftShift
RightShift
LeftBrace
RightBrace
LeftParen
RightParen
LeftBracket
RightBracket
LeftAngle
RightAngle
Comma
Semicolon
Colon
Dot
Bang
Dash
Tilde
Plus
Star
Slash
Percent
VerticalBar
Caret
Ampersand
Question

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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.