Enum swc_css_ast::ArchivedToken
source · #[repr(u32,)]
pub enum ArchivedTokenwhere
With<JsWord, EncodeJsWord>: Archive,
Atom: Archive,
bool: Archive,
Box<UrlKeyValue>: Archive,
char: Archive,
f64: Archive,
NumberType: Archive,
Box<DimensionToken>: Archive,{
Show 24 variants
Ident {
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Atom>,
},
Function {
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Atom>,
},
AtKeyword {
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Atom>,
},
Hash {
is_id: Archived<bool>,
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Atom>,
},
String {
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Atom>,
},
BadString {
raw: Archived<Atom>,
},
Url {
value: Archived<With<JsWord, EncodeJsWord>>,
raw: Archived<Box<UrlKeyValue>>,
},
BadUrl {
raw: Archived<Atom>,
},
Delim {
value: Archived<char>,
},
Number {
value: Archived<f64>,
raw: Archived<Atom>,
type_flag: Archived<NumberType>,
},
Percentage {
value: Archived<f64>,
raw: Archived<Atom>,
},
Dimension(Archived<Box<DimensionToken>>),
WhiteSpace {
value: Archived<Atom>,
},
CDO,
CDC,
Colon,
Semi,
Comma,
LBracket,
RBracket,
LParen,
RParen,
LBrace,
RBrace,
}
Expand description
An archived Token
Variants§
Ident
Fields
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::Ident::value
raw: Archived<Atom>
The archived counterpart of Token::Ident::raw
The archived counterpart of Token::Ident
Function
Fields
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::Function::value
raw: Archived<Atom>
The archived counterpart of Token::Function::raw
The archived counterpart of Token::Function
AtKeyword
Fields
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::AtKeyword::value
raw: Archived<Atom>
The archived counterpart of Token::AtKeyword::raw
The archived counterpart of Token::AtKeyword
Hash
Fields
is_id: Archived<bool>
The archived counterpart of Token::Hash::is_id
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::Hash::value
raw: Archived<Atom>
The archived counterpart of Token::Hash::raw
The archived counterpart of Token::Hash
String
Fields
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::String::value
raw: Archived<Atom>
The archived counterpart of Token::String::raw
The archived counterpart of Token::String
BadString
Fields
raw: Archived<Atom>
The archived counterpart of Token::BadString::raw
The archived counterpart of Token::BadString
Url
Fields
value: Archived<With<JsWord, EncodeJsWord>>
The archived counterpart of Token::Url::value
raw: Archived<Box<UrlKeyValue>>
The archived counterpart of Token::Url::raw
The archived counterpart of Token::Url
BadUrl
Fields
raw: Archived<Atom>
The archived counterpart of Token::BadUrl::raw
The archived counterpart of Token::BadUrl
Delim
Fields
value: Archived<char>
The archived counterpart of Token::Delim::value
The archived counterpart of Token::Delim
Number
Fields
value: Archived<f64>
The archived counterpart of Token::Number::value
raw: Archived<Atom>
The archived counterpart of Token::Number::raw
type_flag: Archived<NumberType>
The archived counterpart of Token::Number::type_flag
The archived counterpart of Token::Number
Percentage
Fields
value: Archived<f64>
The archived counterpart of Token::Percentage::value
raw: Archived<Atom>
The archived counterpart of Token::Percentage::raw
The archived counterpart of Token::Percentage
Dimension(Archived<Box<DimensionToken>>)
Tuple Fields
0: Archived<Box<DimensionToken>>
The archived counterpart of Token::Dimension::0
The archived counterpart of Token::Dimension
WhiteSpace
Fields
value: Archived<Atom>
The archived counterpart of Token::WhiteSpace::value
The archived counterpart of Token::WhiteSpace
CDO
The archived counterpart of Token::CDO
CDC
The archived counterpart of Token::CDC
Colon
The archived counterpart of Token::Colon
Semi
The archived counterpart of Token::Semi
Comma
The archived counterpart of Token::Comma
LBracket
The archived counterpart of Token::LBracket
RBracket
The archived counterpart of Token::RBracket
LParen
The archived counterpart of Token::LParen
RParen
The archived counterpart of Token::RParen
LBrace
The archived counterpart of Token::LBrace
RBrace
The archived counterpart of Token::RBrace