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 EqIgnoreSpan for DimensionToken
impl EqIgnoreSpan for DimensionToken
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl PartialEq for DimensionToken
impl PartialEq 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 ==
.impl StructuralPartialEq for DimensionToken
Auto Trait Implementations§
impl RefUnwindSafe for DimensionToken
impl Send for DimensionToken
impl Sync for DimensionToken
impl Unpin for DimensionToken
impl UnwindSafe for DimensionToken
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more