pub enum TokenKind {
Show 31 variants
Eof,
Ident,
AtKeyword,
Hash,
IdHash,
QuotedString,
Url,
Function,
Number,
Percentage,
Dimension,
WhiteSpace,
Comment,
BadComment,
BadString,
BadUrl,
Delim,
Colon,
Semicolon,
Comma,
LeftParenthesis,
RightParenthesis,
LeftSquareBracket,
RightSquareBracket,
LeftCurlyBracket,
RightCurlyBracket,
IncludeMatch,
DashMatch,
PrefixMatch,
SuffixMatch,
SubstringMatch,
}Expand description
The lexical kind of a CSS token.
Tokens retain only byte ranges into the original source. Comments are emitted deliberately so that CSS Modules magic comments can be interpreted without a second scan of the input.
Variants§
Eof
Ident
AtKeyword
Hash
IdHash
QuotedString
Url
Function
Number
Percentage
Dimension
WhiteSpace
Comment
BadComment
BadString
BadUrl
Delim
Colon
Semicolon
Comma
LeftParenthesis
RightParenthesis
LeftSquareBracket
RightSquareBracket
LeftCurlyBracket
RightCurlyBracket
IncludeMatch
DashMatch
PrefixMatch
SuffixMatch
SubstringMatch
Implementations§
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