pub enum TokenKind {
Value,
QuotedValue(QuoteKind),
Tabs(usize),
Spaces(usize),
Eof,
}
Expand description
Types of tokens
Variants§
Value
A regular value.
QuotedValue(QuoteKind)
A value surrounded by quotes in the source.
Tabs(usize)
A run of tab (\t) characters.
Spaces(usize)
A run of space characters, acting as potentially multiple levels of indentation.
Eof
The end of the source.
Trait Implementations§
source§impl PartialEq for TokenKind
impl PartialEq for TokenKind
impl Copy 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 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