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
StorageAccess(StorageAccess)
Tuple Fields of StorageAccess
Interpolation(Interpolation)
Tuple Fields of Interpolation
Sampling(Sampling)
Tuple Fields of Sampling
0: Sampling
PrecisionQualifier(Precision)
Tuple Fields of PrecisionQualifier
0: Precision
TypeName(Type)
Tuple Fields of TypeName
0: Type
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.