Type Alias style::values::specified::image::CrossFadeImage

source ·
pub type CrossFadeImage = CrossFadeImage<Image, Color>;
Expand description

CrossFadeImage = image | color

Aliased Type§

enum CrossFadeImage {
    Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>),
    Color(Color),
}

Variants§

§

Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>)

A boxed image value. Boxing provides indirection so images can be cross-fades and cross-fades can be images.

§

Color(Color)

A color value.

Implementations§

source§

impl CrossFadeImage

source

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, cors_mode: CorsMode, flags: ParseImageFlags, ) -> Result<Self, ParseError<'i>>