pub enum ComponentValue {
Show 25 variants PreservedToken(TokenAndSpan), Function(Function), SimpleBlock(SimpleBlock), DeclarationOrAtRule(DeclarationOrAtRule), Rule(Rule), StyleBlock(StyleBlock), KeyframeBlock(KeyframeBlock), Ident(Ident), DashedIdent(DashedIdent), Str(Str), Url(Url), Integer(Integer), Number(Number), Percentage(Percentage), Dimension(Dimension), Ratio(Ratio), UnicodeRange(UnicodeRange), Color(Color), AlphaValue(AlphaValue), Hue(Hue), CmykComponent(CmykComponent), Delimiter(Delimiter), CalcSum(CalcSum), ComplexSelector(ComplexSelector), LayerName(LayerName),
}

Variants

PreservedToken(TokenAndSpan)

Function(Function)

SimpleBlock(SimpleBlock)

DeclarationOrAtRule(DeclarationOrAtRule)

Rule(Rule)

StyleBlock(StyleBlock)

KeyframeBlock(KeyframeBlock)

Ident(Ident)

DashedIdent(DashedIdent)

Str(Str)

Url(Url)

Integer(Integer)

Number(Number)

Percentage(Percentage)

Dimension(Dimension)

Ratio(Ratio)

UnicodeRange(UnicodeRange)

Color(Color)

AlphaValue(AlphaValue)

Hue(Hue)

CmykComponent(CmykComponent)

Delimiter(Delimiter)

CalcSum(CalcSum)

ComplexSelector(ComplexSelector)

LayerName(LayerName)

Implementations

Returns true if self is of variant PreservedToken.

Returns Some if self is a reference of variant PreservedToken, and None otherwise.

Returns Some if self is a mutable reference of variant PreservedToken, and None otherwise.

Unwraps the value, yielding the content of PreservedToken.

Panics

Panics if the value is not PreservedToken, with a panic message including the content of self.

Returns Some if self is of variant PreservedToken, and None otherwise.

Returns true if self is of variant Function.

Returns Some if self is a reference of variant Function, and None otherwise.

Returns Some if self is a mutable reference of variant Function, and None otherwise.

Unwraps the value, yielding the content of Function.

Panics

Panics if the value is not Function, with a panic message including the content of self.

Returns Some if self is of variant Function, and None otherwise.

Returns true if self is of variant SimpleBlock.

Returns Some if self is a reference of variant SimpleBlock, and None otherwise.

Returns Some if self is a mutable reference of variant SimpleBlock, and None otherwise.

Unwraps the value, yielding the content of SimpleBlock.

Panics

Panics if the value is not SimpleBlock, with a panic message including the content of self.

Returns Some if self is of variant SimpleBlock, and None otherwise.

Returns true if self is of variant DeclarationOrAtRule.

Returns Some if self is a reference of variant DeclarationOrAtRule, and None otherwise.

Returns Some if self is a mutable reference of variant DeclarationOrAtRule, and None otherwise.

Unwraps the value, yielding the content of DeclarationOrAtRule.

Panics

Panics if the value is not DeclarationOrAtRule, with a panic message including the content of self.

Returns Some if self is of variant DeclarationOrAtRule, and None otherwise.

Returns true if self is of variant Rule.

Returns Some if self is a reference of variant Rule, and None otherwise.

Returns Some if self is a mutable reference of variant Rule, and None otherwise.

Unwraps the value, yielding the content of Rule.

Panics

Panics if the value is not Rule, with a panic message including the content of self.

Returns Some if self is of variant Rule, and None otherwise.

Returns true if self is of variant StyleBlock.

Returns Some if self is a reference of variant StyleBlock, and None otherwise.

Returns Some if self is a mutable reference of variant StyleBlock, and None otherwise.

Unwraps the value, yielding the content of StyleBlock.

Panics

Panics if the value is not StyleBlock, with a panic message including the content of self.

Returns Some if self is of variant StyleBlock, and None otherwise.

Returns true if self is of variant KeyframeBlock.

Returns Some if self is a reference of variant KeyframeBlock, and None otherwise.

Returns Some if self is a mutable reference of variant KeyframeBlock, and None otherwise.

Unwraps the value, yielding the content of KeyframeBlock.

Panics

Panics if the value is not KeyframeBlock, with a panic message including the content of self.

Returns Some if self is of variant KeyframeBlock, and None otherwise.

Returns true if self is of variant Ident.

Returns Some if self is a reference of variant Ident, and None otherwise.

Returns Some if self is a mutable reference of variant Ident, and None otherwise.

Unwraps the value, yielding the content of Ident.

Panics

Panics if the value is not Ident, with a panic message including the content of self.

Returns Some if self is of variant Ident, and None otherwise.

Returns true if self is of variant DashedIdent.

Returns Some if self is a reference of variant DashedIdent, and None otherwise.

Returns Some if self is a mutable reference of variant DashedIdent, and None otherwise.

Unwraps the value, yielding the content of DashedIdent.

Panics

Panics if the value is not DashedIdent, with a panic message including the content of self.

Returns Some if self is of variant DashedIdent, and None otherwise.

Returns true if self is of variant Str.

Returns Some if self is a reference of variant Str, and None otherwise.

Returns Some if self is a mutable reference of variant Str, and None otherwise.

Unwraps the value, yielding the content of Str.

Panics

Panics if the value is not Str, with a panic message including the content of self.

Returns Some if self is of variant Str, and None otherwise.

Returns true if self is of variant Url.

Returns Some if self is a reference of variant Url, and None otherwise.

Returns Some if self is a mutable reference of variant Url, and None otherwise.

Unwraps the value, yielding the content of Url.

Panics

Panics if the value is not Url, with a panic message including the content of self.

Returns Some if self is of variant Url, and None otherwise.

Returns true if self is of variant Integer.

Returns Some if self is a reference of variant Integer, and None otherwise.

Returns Some if self is a mutable reference of variant Integer, and None otherwise.

Unwraps the value, yielding the content of Integer.

Panics

Panics if the value is not Integer, with a panic message including the content of self.

Returns Some if self is of variant Integer, and None otherwise.

Returns true if self is of variant Number.

Returns Some if self is a reference of variant Number, and None otherwise.

Returns Some if self is a mutable reference of variant Number, and None otherwise.

Unwraps the value, yielding the content of Number.

Panics

Panics if the value is not Number, with a panic message including the content of self.

Returns Some if self is of variant Number, and None otherwise.

Returns true if self is of variant Percentage.

Returns Some if self is a reference of variant Percentage, and None otherwise.

Returns Some if self is a mutable reference of variant Percentage, and None otherwise.

Unwraps the value, yielding the content of Percentage.

Panics

Panics if the value is not Percentage, with a panic message including the content of self.

Returns Some if self is of variant Percentage, and None otherwise.

Returns true if self is of variant Dimension.

Returns Some if self is a reference of variant Dimension, and None otherwise.

Returns Some if self is a mutable reference of variant Dimension, and None otherwise.

Unwraps the value, yielding the content of Dimension.

Panics

Panics if the value is not Dimension, with a panic message including the content of self.

Returns Some if self is of variant Dimension, and None otherwise.

Returns true if self is of variant Ratio.

Returns Some if self is a reference of variant Ratio, and None otherwise.

Returns Some if self is a mutable reference of variant Ratio, and None otherwise.

Unwraps the value, yielding the content of Ratio.

Panics

Panics if the value is not Ratio, with a panic message including the content of self.

Returns Some if self is of variant Ratio, and None otherwise.

Returns true if self is of variant UnicodeRange.

Returns Some if self is a reference of variant UnicodeRange, and None otherwise.

Returns Some if self is a mutable reference of variant UnicodeRange, and None otherwise.

Unwraps the value, yielding the content of UnicodeRange.

Panics

Panics if the value is not UnicodeRange, with a panic message including the content of self.

Returns Some if self is of variant UnicodeRange, and None otherwise.

Returns true if self is of variant Color.

Returns Some if self is a reference of variant Color, and None otherwise.

Returns Some if self is a mutable reference of variant Color, and None otherwise.

Unwraps the value, yielding the content of Color.

Panics

Panics if the value is not Color, with a panic message including the content of self.

Returns Some if self is of variant Color, and None otherwise.

Returns true if self is of variant AlphaValue.

Returns Some if self is a reference of variant AlphaValue, and None otherwise.

Returns Some if self is a mutable reference of variant AlphaValue, and None otherwise.

Unwraps the value, yielding the content of AlphaValue.

Panics

Panics if the value is not AlphaValue, with a panic message including the content of self.

Returns Some if self is of variant AlphaValue, and None otherwise.

Returns true if self is of variant Hue.

Returns Some if self is a reference of variant Hue, and None otherwise.

Returns Some if self is a mutable reference of variant Hue, and None otherwise.

Unwraps the value, yielding the content of Hue.

Panics

Panics if the value is not Hue, with a panic message including the content of self.

Returns Some if self is of variant Hue, and None otherwise.

Returns true if self is of variant CmykComponent.

Returns Some if self is a reference of variant CmykComponent, and None otherwise.

Returns Some if self is a mutable reference of variant CmykComponent, and None otherwise.

Unwraps the value, yielding the content of CmykComponent.

Panics

Panics if the value is not CmykComponent, with a panic message including the content of self.

Returns Some if self is of variant CmykComponent, and None otherwise.

Returns true if self is of variant Delimiter.

Returns Some if self is a reference of variant Delimiter, and None otherwise.

Returns Some if self is a mutable reference of variant Delimiter, and None otherwise.

Unwraps the value, yielding the content of Delimiter.

Panics

Panics if the value is not Delimiter, with a panic message including the content of self.

Returns Some if self is of variant Delimiter, and None otherwise.

Returns true if self is of variant CalcSum.

Returns Some if self is a reference of variant CalcSum, and None otherwise.

Returns Some if self is a mutable reference of variant CalcSum, and None otherwise.

Unwraps the value, yielding the content of CalcSum.

Panics

Panics if the value is not CalcSum, with a panic message including the content of self.

Returns Some if self is of variant CalcSum, and None otherwise.

Returns true if self is of variant ComplexSelector.

Returns Some if self is a reference of variant ComplexSelector, and None otherwise.

Returns Some if self is a mutable reference of variant ComplexSelector, and None otherwise.

Unwraps the value, yielding the content of ComplexSelector.

Panics

Panics if the value is not ComplexSelector, with a panic message including the content of self.

Returns Some if self is of variant ComplexSelector, and None otherwise.

Returns true if self is of variant LayerName.

Returns Some if self is a reference of variant LayerName, and None otherwise.

Returns Some if self is a mutable reference of variant LayerName, and None otherwise.

Unwraps the value, yielding the content of LayerName.

Panics

Panics if the value is not LayerName, with a panic message including the content of self.

Returns Some if self is of variant LayerName, and None otherwise.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more
Get span of self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more