Enum swc_css_ast::Token
source · [−]pub enum Token {
Show 24 variants
Ident {
value: JsWord,
raw: JsWord,
},
Function {
value: JsWord,
raw: JsWord,
},
AtKeyword {
value: JsWord,
raw: JsWord,
},
Hash {
is_id: bool,
value: JsWord,
raw: JsWord,
},
Str {
value: JsWord,
raw: JsWord,
},
BadStr {
value: JsWord,
raw: JsWord,
},
Url {
value: JsWord,
raw: JsWord,
},
BadUrl {
value: JsWord,
raw: JsWord,
},
Delim {
value: char,
},
Num {
value: f64,
raw: JsWord,
type_flag: NumberType,
},
Percent {
value: f64,
raw: JsWord,
},
Dimension {
value: f64,
raw_value: JsWord,
unit: JsWord,
raw_unit: JsWord,
type_flag: NumberType,
},
WhiteSpace {
value: JsWord,
},
CDO,
CDC,
Colon,
Semi,
Comma,
LBracket,
RBracket,
LParen,
RParen,
LBrace,
RBrace,
}
Variants
Ident
Function
AtKeyword
@
Hash
#
Str
BadStr
Url
url(value)
BadUrl
Delim
Fields
value: char
Num
Percent
Dimension
WhiteSpace
Fields
value: JsWord
One or more whitespace.
CDO
<!--
CDC
-->
Colon
`:``
Semi
;
Comma
,
LBracket
[
RBracket
]
LParen
(
RParen
)
LBrace
{
RBrace
}
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more