Type Alias style::properties_and_values::value::ComputedValueComponent
source · pub type ComputedValueComponent = GenericValueComponent<Length, Number, Percentage, LengthPercentage, Color, Image, ComputedUrl, Integer, Angle, Time, Resolution, Transform>;
Expand description
A single component of the computed value.
Aliased Type§
enum ComputedValueComponent {
Show 15 variants
Length(CSSPixelLength),
Number(f32),
Percentage(Percentage),
LengthPercentage(LengthPercentage),
Color(GenericColor<Percentage>),
Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>),
Url(ComputedUrl),
Integer(i32),
Angle(Angle),
Time(Time),
Resolution(Resolution),
TransformFunction(GenericTransform<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>),
CustomIdent(CustomIdent),
TransformList(ComponentList<GenericValueComponent<CSSPixelLength, f32, Percentage, LengthPercentage, GenericColor<Percentage>, GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>, ComputedUrl, i32, Angle, Time, Resolution, GenericTransform<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>>>),
String(OwnedStr),
}
Variants§
Length(CSSPixelLength)
A
Number(f32)
A
Percentage(Percentage)
A
LengthPercentage(LengthPercentage)
A
Color(GenericColor<Percentage>)
A
Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>)
An
Url(ComputedUrl)
A
Integer(i32)
An
Angle(Angle)
An
Time(Time)
A
Resolution(Resolution)
A
TransformFunction(GenericTransform<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>)
A none
should not interpolate.
CustomIdent(CustomIdent)
A
TransformList(ComponentList<GenericValueComponent<CSSPixelLength, f32, Percentage, LengthPercentage, GenericColor<Percentage>, GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>, ComputedUrl, i32, Angle, Time, Resolution, GenericTransform<GenericTransformOperation<Angle, f32, CSSPixelLength, i32, LengthPercentage>>>>)
A none
should not interpolate.
String(OwnedStr)
A