Enum swc_css_visit::fields::ComponentValueField
source · pub enum ComponentValueField {
Show 32 variants
PreservedToken,
Function,
SimpleBlock,
AtRule,
QualifiedRule,
ListOfComponentValues,
KeyframeBlock,
Ident,
DashedIdent,
Str,
Url,
Integer,
Number,
Percentage,
Dimension,
LengthPercentage,
FrequencyPercentage,
AnglePercentage,
TimePercentage,
Ratio,
UnicodeRange,
Color,
AlphaValue,
Hue,
CmykComponent,
Delimiter,
CalcSum,
ComplexSelector,
LayerName,
SupportsCondition,
Declaration,
IdSelector,
}
Expand description
This enum represents fields of ComponentValueField
Variants§
PreservedToken
This represents PreservedToken
Function
This represents Function
SimpleBlock
This represents SimpleBlock
AtRule
This represents AtRule
QualifiedRule
This represents QualifiedRule
ListOfComponentValues
This represents ListOfComponentValues
KeyframeBlock
This represents KeyframeBlock
Ident
This represents Ident
DashedIdent
This represents DashedIdent
Str
This represents Str
Url
This represents Url
Integer
This represents Integer
Number
This represents Number
Percentage
This represents Percentage
Dimension
This represents Dimension
LengthPercentage
This represents LengthPercentage
FrequencyPercentage
This represents FrequencyPercentage
AnglePercentage
This represents AnglePercentage
TimePercentage
This represents TimePercentage
Ratio
This represents Ratio
UnicodeRange
This represents UnicodeRange
Color
This represents Color
AlphaValue
This represents AlphaValue
Hue
This represents Hue
CmykComponent
This represents CmykComponent
Delimiter
This represents Delimiter
CalcSum
This represents CalcSum
ComplexSelector
This represents ComplexSelector
LayerName
This represents LayerName
SupportsCondition
This represents SupportsCondition
Declaration
This represents Declaration
IdSelector
This represents IdSelector
Implementations§
Trait Implementations§
source§impl Clone for ComponentValueField
impl Clone for ComponentValueField
source§fn clone(&self) -> ComponentValueField
fn clone(&self) -> ComponentValueField
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentValueField
impl Debug for ComponentValueField
source§impl<'de> Deserialize<'de> for ComponentValueField
impl<'de> Deserialize<'de> for ComponentValueField
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>,
source§impl Hash for ComponentValueField
impl Hash for ComponentValueField
source§impl Ord for ComponentValueField
impl Ord for ComponentValueField
source§fn cmp(&self, other: &ComponentValueField) -> Ordering
fn cmp(&self, other: &ComponentValueField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ComponentValueField
impl PartialEq for ComponentValueField
source§fn eq(&self, other: &ComponentValueField) -> bool
fn eq(&self, other: &ComponentValueField) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ComponentValueField
impl PartialOrd for ComponentValueField
source§fn partial_cmp(&self, other: &ComponentValueField) -> Option<Ordering>
fn partial_cmp(&self, other: &ComponentValueField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ComponentValueField
impl Serialize for ComponentValueField
impl Copy for ComponentValueField
impl Eq for ComponentValueField
impl StructuralPartialEq for ComponentValueField
Auto Trait Implementations§
impl Freeze for ComponentValueField
impl RefUnwindSafe for ComponentValueField
impl Send for ComponentValueField
impl Sync for ComponentValueField
impl Unpin for ComponentValueField
impl UnwindSafe for ComponentValueField
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more