#[repr(C, u8)]pub enum GenericAnimationDuration<T> {
Auto,
Time(T),
}
Expand description
The animation-duration
property.
https://drafts.csswg.org/css-animations-2/#animation-duration
Variants§
Auto
The initial value. However, we serialize this as 0s if the preference is disabled.
Time(T)
The time value, <time [0s,∞]>.
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for GenericAnimationDuration<T>
impl<T: Clone> Clone for GenericAnimationDuration<T>
source§fn clone(&self) -> GenericAnimationDuration<T>
fn clone(&self) -> GenericAnimationDuration<T>
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<T: Debug> Debug for GenericAnimationDuration<T>
impl<T: Debug> Debug for GenericAnimationDuration<T>
source§impl<T> MallocSizeOf for GenericAnimationDuration<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for GenericAnimationDuration<T>where
T: 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<T: PartialEq> PartialEq for GenericAnimationDuration<T>
impl<T: PartialEq> PartialEq for GenericAnimationDuration<T>
source§fn eq(&self, other: &GenericAnimationDuration<T>) -> bool
fn eq(&self, other: &GenericAnimationDuration<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> SpecifiedValueInfo for GenericAnimationDuration<T>where
T: SpecifiedValueInfo,
impl<T> SpecifiedValueInfo for GenericAnimationDuration<T>where
T: SpecifiedValueInfo,
source§const SUPPORTED_TYPES: u8 = _
const SUPPORTED_TYPES: u8 = _
Supported CssTypes by the given value type. Read more
source§impl<T> ToComputedValue for GenericAnimationDuration<T>where
T: ToComputedValue,
impl<T> ToComputedValue for GenericAnimationDuration<T>where
T: ToComputedValue,
§type ComputedValue = GenericAnimationDuration<<T as ToComputedValue>::ComputedValue>
type ComputedValue = GenericAnimationDuration<<T 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<T> ToShmem for GenericAnimationDuration<T>where
T: ToShmem,
impl<T> ToShmem for GenericAnimationDuration<T>where
T: ToShmem,
source§impl<T: Zero> Zero for AnimationDuration<T>
impl<T: Zero> Zero for AnimationDuration<T>
impl<T: Copy> Copy for GenericAnimationDuration<T>
impl<T> StructuralPartialEq for GenericAnimationDuration<T>
Auto Trait Implementations§
impl<T> Freeze for GenericAnimationDuration<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenericAnimationDuration<T>where
T: RefUnwindSafe,
impl<T> Send for GenericAnimationDuration<T>where
T: Send,
impl<T> Sync for GenericAnimationDuration<T>where
T: Sync,
impl<T> Unpin for GenericAnimationDuration<T>where
T: Unpin,
impl<T> UnwindSafe for GenericAnimationDuration<T>where
T: 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> 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