#[repr(C, u8)]pub enum GenericCrossFadeImage<I, C> {
    Image(I),
    Color(C),
}Expand description
An image or a color. cross-fade takes either when blending
images together.
Variants§
Image(I)
A boxed image value. Boxing provides indirection so images can be cross-fades and cross-fades can be images.
Color(C)
A color value.
Implementations§
Source§impl GenericCrossFadeImage<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Color>
 
impl GenericCrossFadeImage<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>, Color>
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 duplicate 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§fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
 
fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Resultwhere
    W: Write,
Serialize 
self in CSS syntax, writing to dest.Source§fn to_css_string(&self) -> String
 
fn to_css_string(&self) -> String
Serialize 
self in CSS syntax and return a string. Read moreSource§fn to_css_cssstring(&self) -> String
 
fn to_css_cssstring(&self) -> String
Serialize 
self in CSS syntax and return a CssString. Read moreSource§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.
Source§impl<I, C> ToShmem for GenericCrossFadeImage<I, C>
 
impl<I, C> ToShmem for GenericCrossFadeImage<I, C>
impl<I, C> StructuralPartialEq for GenericCrossFadeImage<I, C>
Auto Trait Implementations§
impl<I, C> Freeze for GenericCrossFadeImage<I, C>
impl<I, C> RefUnwindSafe for GenericCrossFadeImage<I, C>where
    I: RefUnwindSafe,
    C: RefUnwindSafe,
impl<I, C> Send for GenericCrossFadeImage<I, C>
impl<I, C> Sync for GenericCrossFadeImage<I, C>
impl<I, C> Unpin for GenericCrossFadeImage<I, C>
impl<I, C> UnwindSafe for GenericCrossFadeImage<I, C>where
    I: UnwindSafe,
    C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
 
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
 
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
 
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
 
fn maybe_boxed(self) -> T
Convert