pub type Image = GenericImage<Gradient, MozImageRect, ComputedImageUrl, Color, Percentage, Resolution>;
Expand description
Computed values for an image according to CSS-IMAGES. https://drafts.csswg.org/css-images/#image-values
Trait Implementations§
source§impl ToAnimatedValue for Image
impl ToAnimatedValue for Image
§type AnimatedValue = GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, MozImageRect, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>
type AnimatedValue = GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, MozImageRect, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>
The type of the animated value.
source§fn to_animated_value(self) -> Self
fn to_animated_value(self) -> Self
Converts this value to an animated value.
source§fn from_animated_value(animated: Self::AnimatedValue) -> Self
fn from_animated_value(animated: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.