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,
},
String {
value: JsWord,
raw: JsWord,
},
BadString {
value: JsWord,
raw: JsWord,
},
Url {
name: JsWord,
raw_name: JsWord,
before: JsWord,
after: JsWord,
value: JsWord,
raw_value: JsWord,
},
BadUrl {
name: JsWord,
raw_name: JsWord,
value: JsWord,
raw_value: JsWord,
},
Delim {
value: char,
},
Number {
value: f64,
raw: JsWord,
type_flag: NumberType,
},
Percentage {
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
#
String
BadString
Url
url(value)
BadUrl
Delim
Fields
value: char
Number
Percentage
Dimension
WhiteSpace
Fields
value: JsWord
One or more whitespace.
CDO
<!--
CDC
-->
Colon
`:``
Semi
;
Comma
,
LBracket
[
RBracket
]
LParen
(
RParen
)
LBrace
{
RBrace
}
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Token
impl<'de> Deserialize<'de> for Token
sourcefn 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
sourceimpl EqIgnoreSpan for Token
impl EqIgnoreSpan for Token
fn eq_ignore_span(&self, other: &Self) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more