pub enum TokenKind {
Identifier {
keyword: Option<Keyword>,
quote: QuoteForm,
},
String,
Blob,
Integer,
Float,
Parameter,
Punctuator(Punctuator),
EndOfInput,
}Expand description
The kind of a token.
Variants§
Identifier
A word: a keyword when keyword is set, otherwise an identifier.
Fields
String
A 'string' literal.
Blob
An x'..' blob literal.
Integer
An integer literal, in decimal or hexadecimal.
Float
A floating-point literal.
Parameter
A bound parameter.
Punctuator(Punctuator)
Punctuation or an operator.
EndOfInput
End of input.
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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