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 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