Struct swc_css_ast::DimensionToken
source · pub struct DimensionToken {
pub value: f64,
pub raw_value: Atom,
pub unit: JsWord,
pub type_flag: NumberType,
pub raw_unit: Atom,
}
Fields§
§value: f64
§raw_value: Atom
§unit: JsWord
§type_flag: NumberType
§raw_unit: Atom
Trait Implementations§
source§impl Clone for DimensionToken
impl Clone for DimensionToken
source§fn clone(&self) -> DimensionToken
fn clone(&self) -> DimensionToken
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DimensionToken
impl Debug for DimensionToken
source§impl<'de> Deserialize<'de> for DimensionToken
impl<'de> Deserialize<'de> for DimensionToken
source§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
source§impl EqIgnoreSpan for DimensionToken
impl EqIgnoreSpan for DimensionToken
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl PartialEq<DimensionToken> for DimensionToken
impl PartialEq<DimensionToken> for DimensionToken
source§fn eq(&self, other: &DimensionToken) -> bool
fn eq(&self, other: &DimensionToken) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.