pub enum ExpectedToken {
Token(TokenValue),
TypeName,
Identifier,
IntLiteral,
FloatLiteral,
BoolLiteral,
Eof,
}
Available on (
wgpu_core
or naga
) and crate feature glsl-in
only.Expand description
One of the expected tokens returned in InvalidToken
.
Variants§
Token(TokenValue)
A specific token was expected.
TypeName
A type was expected.
Identifier
An identifier was expected.
IntLiteral
An integer literal was expected.
FloatLiteral
A float literal was expected.
BoolLiteral
A boolean literal was expected.
Eof
The end of file was expected.
Trait Implementations§
source§impl Debug for ExpectedToken
impl Debug for ExpectedToken
source§impl Display for ExpectedToken
impl Display for ExpectedToken
source§impl From<TokenValue> for ExpectedToken
impl From<TokenValue> for ExpectedToken
source§fn from(token: TokenValue) -> ExpectedToken
fn from(token: TokenValue) -> ExpectedToken
Converts to this type from the input type.
source§impl PartialEq for ExpectedToken
impl PartialEq for ExpectedToken
source§fn eq(&self, other: &ExpectedToken) -> bool
fn eq(&self, other: &ExpectedToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExpectedToken
Auto Trait Implementations§
impl Freeze for ExpectedToken
impl RefUnwindSafe for ExpectedToken
impl Send for ExpectedToken
impl Sync for ExpectedToken
impl Unpin for ExpectedToken
impl UnwindSafe for ExpectedToken
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more