Enum swc_css_ast::Token
source · pub enum Token {
Show 24 variants
Ident {
value: JsWord,
raw: Atom,
},
Function {
value: JsWord,
raw: Atom,
},
AtKeyword {
value: JsWord,
raw: Atom,
},
Hash {
is_id: bool,
value: JsWord,
raw: Atom,
},
String {
value: JsWord,
raw: Atom,
},
BadString {
raw: Atom,
},
Url {
value: JsWord,
raw: Box<UrlKeyValue>,
},
BadUrl {
raw: Atom,
},
Delim {
value: char,
},
Number {
value: f64,
raw: Atom,
type_flag: NumberType,
},
Percentage {
value: f64,
raw: Atom,
},
Dimension(Box<DimensionToken>),
WhiteSpace {
value: Atom,
},
CDO,
CDC,
Colon,
Semi,
Comma,
LBracket,
RBracket,
LParen,
RParen,
LBrace,
RBrace,
}
Variants§
Ident
Function
AtKeyword
@
Hash
#
String
BadString
Url
url(value)
BadUrl
Delim
Number
Percentage
Dimension(Box<DimensionToken>)
WhiteSpace
One or more whitespace.
CDO
<!--
CDC
-->
Colon
`:``
Semi
;
Comma
,
LBracket
[
RBracket
]
LParen
(
RParen
)
LBrace
{
RBrace
}
Trait Implementations§
source§impl EqIgnoreSpan for Token
impl EqIgnoreSpan for Token
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl PartialEq<Token> for Token
impl PartialEq<Token> for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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