pub enum ExpectedToken<'a> {
Token(Token<'a>),
Identifier,
AfterIdentListComma,
AfterIdentListArg,
PrimaryExpression,
Assignment,
SwitchItem,
WorkgroupSizeSeparator,
GlobalItem,
Type,
Variable,
Function,
}
Variants§
Token(Token<'a>)
Identifier
AfterIdentListComma
AfterIdentListArg
PrimaryExpression
Expected: constant, parenthesized expression, identifier
Assignment
Expected: assignment, increment/decrement expression
SwitchItem
Expected: ‘case’, ‘default’, ‘}’
WorkgroupSizeSeparator
Expected: ‘,’, ‘)’
GlobalItem
Expected: ‘struct’, ‘let’, ‘var’, ‘type’, ‘;’, ‘fn’, eof
Type
Expected a type.
Variable
Access of var
, let
, const
.
Function
Access of a function
Trait Implementations§
source§impl<'a> Clone for ExpectedToken<'a>
impl<'a> Clone for ExpectedToken<'a>
source§fn clone(&self) -> ExpectedToken<'a>
fn clone(&self) -> ExpectedToken<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ExpectedToken<'a>
impl<'a> Debug for ExpectedToken<'a>
source§impl<'a> PartialEq for ExpectedToken<'a>
impl<'a> PartialEq for ExpectedToken<'a>
source§fn eq(&self, other: &ExpectedToken<'a>) -> bool
fn eq(&self, other: &ExpectedToken<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for ExpectedToken<'a>
impl<'a> StructuralPartialEq for ExpectedToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExpectedToken<'a>
impl<'a> RefUnwindSafe for ExpectedToken<'a>
impl<'a> Send for ExpectedToken<'a>
impl<'a> Sync for ExpectedToken<'a>
impl<'a> Unpin for ExpectedToken<'a>
impl<'a> UnwindSafe for ExpectedToken<'a>
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