Enum swc_css_ast::Token [−][src]
pub enum Token {
Show 32 variants
AtKeyword(JsWord),
LParen,
RParen,
LBracket,
RBracket,
Percent,
Num(NumToken),
Ident(JsWord),
Str {
value: JsWord,
},
Url {
value: JsWord,
},
Comma,
Semi,
Bang,
LBrace,
RBrace,
Colon,
Asterisk,
Dot,
Hash {
is_id: bool,
value: JsWord,
},
WhiteSpace,
CDC,
CDO,
Ampersand,
Bar,
Dollar,
Caret,
Tilde,
Equals,
Plus,
Minus,
Div,
GreaterThan,
}
Variants
AtKeyword(JsWord)
@
Tuple Fields of AtKeyword
0: JsWord
(
)
[
]
%
Num(NumToken)
Tuple Fields of Num
0: NumToken
Ident(JsWord)
Tuple Fields of Ident
0: JsWord
Fields of Str
value: JsWord
url(value)
Fields of Url
value: JsWord
,
;
!
{
}
`:``
*
.
#
One or more whitespace.
-->
<!--
&
|
$
^
~
=
+
-
/
<
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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