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
impl CrossFadeImage
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, cors_mode: CorsMode, flags: ParseImageFlags, ) -> Result<Self, ParseError<'i>>
Trait Implementations
Source§impl<I: Clone, C: Clone> Clone for GenericCrossFadeImage<I, C>
impl<I: Clone, C: Clone> Clone for GenericCrossFadeImage<I, C>
Source§fn clone(&self) -> GenericCrossFadeImage<I, C>
fn clone(&self) -> GenericCrossFadeImage<I, C>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<I, C> MallocSizeOf for GenericCrossFadeImage<I, C>where
I: MallocSizeOf,
C: MallocSizeOf,
impl<I, C> MallocSizeOf for GenericCrossFadeImage<I, C>where
I: MallocSizeOf,
C: MallocSizeOf,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl<I, C> ToComputedValue for GenericCrossFadeImage<I, C>where
I: ToComputedValue,
C: ToComputedValue,
impl<I, C> ToComputedValue for GenericCrossFadeImage<I, C>where
I: ToComputedValue,
C: ToComputedValue,
Source§type ComputedValue = GenericCrossFadeImage<<I as ToComputedValue>::ComputedValue, <C as ToComputedValue>::ComputedValue>
type ComputedValue = GenericCrossFadeImage<<I as ToComputedValue>::ComputedValue, <C as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
Source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
Source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.Source§impl<I, C> ToCss for GenericCrossFadeImage<I, C>
impl<I, C> ToCss for GenericCrossFadeImage<I, C>
Source§impl<I, C> ToResolvedValue for GenericCrossFadeImage<I, C>where
I: ToResolvedValue,
C: ToResolvedValue,
impl<I, C> ToResolvedValue for GenericCrossFadeImage<I, C>where
I: ToResolvedValue,
C: ToResolvedValue,
Source§type ResolvedValue = GenericCrossFadeImage<<I as ToResolvedValue>::ResolvedValue, <C as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericCrossFadeImage<<I as ToResolvedValue>::ResolvedValue, <C as ToResolvedValue>::ResolvedValue>
The resolved value type we’re going to be converted to.
Source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
Source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.