pub enum ExpectedToken {
Token(TokenValue),
TypeName,
Identifier,
IntLiteral,
FloatLiteral,
BoolLiteral,
Eof,
}
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 Clone for ExpectedToken
impl Clone for ExpectedToken
source§fn clone(&self) -> ExpectedToken
fn clone(&self) -> ExpectedToken
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 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) -> Self
fn from(token: TokenValue) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExpectedToken
impl PartialEq for ExpectedToken
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
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
)