pub enum ExpectedToken<'a> {
Show 13 variants
Token(Token<'a>),
Identifier,
AfterIdentListComma,
AfterIdentListArg,
PrimaryExpression,
Assignment,
SwitchItem,
WorkgroupSizeSeparator,
GlobalItem,
Type,
Variable,
Function,
DiagnosticAttribute,
}
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
DiagnosticAttribute
The diagnostic
identifier of the @diagnostic(…)
attribute.
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>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)