pub enum TokenKind {
Show 30 variants
Ident(String),
Int(i64),
Float(f64),
Str(String),
AtIdent(String),
HexColor(String),
Dimension(u32, u32),
Comment(String),
LBrace,
RBrace,
LParen,
RParen,
LBracket,
RBracket,
Colon,
Semi,
Comma,
Dot,
DotDot,
Star,
Plus,
Minus,
Slash,
Percent,
Eq,
Arrow,
BidiArrow,
BackArrow,
Newline,
Eof,
}Variants§
Ident(String)
Int(i64)
Float(f64)
Str(String)
String literal: unescaped content, {expr} interpolation left intact.
AtIdent(String)
@accent — theme token reference.
HexColor(String)
#1a2b3c / #abc — color literal.
Dimension(u32, u32)
2x4 — grid dimensions.
Comment(String)
LBrace
RBrace
LParen
RParen
LBracket
RBracket
Colon
Semi
Comma
Dot
DotDot
Star
Plus
Minus
Slash
Percent
Eq
Arrow
BidiArrow
BackArrow
Newline
Eof
Implementations§
Trait Implementations§
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