pub enum Tt {
Kw(Kw),
Ident,
SysIdent,
Sym(Sym),
Num(NumLit),
Str,
Eof,
}Expand description
“Token type” Aka.: a TokenKind, but with with data unnecessary for parsing stripped.
Variants§
Kw(Kw)
Keywords
Ident
Identifiers
SysIdent
System identifiers (‘$foo’)
Sym(Sym)
Symbols
Num(NumLit)
Numeric literals
Str
String literals
Eof
End-of-File sentinel, parser internal
Implementations§
Trait Implementations§
impl Copy for Tt
impl Eq for Tt
impl StructuralPartialEq for Tt
Auto Trait Implementations§
impl Freeze for Tt
impl RefUnwindSafe for Tt
impl Send for Tt
impl Sync for Tt
impl Unpin for Tt
impl UnsafeUnpin for Tt
impl UnwindSafe for Tt
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