pub struct TransitionSpec {
pub property: TransitionProperty,
pub duration: Duration,
pub easing: Easing,
}Expand description
Author-declared transition. CSS shorthand
transition: opacity 200ms ease-out lands as one of these per
comma-separated entry. The runtime stores all specs for an entity in
a TransitionSpecs component and consults them when a relevant
property changes (e.g. on a class flip).
Fields§
§property: TransitionPropertyWhich property this spec applies to.
duration: DurationLength of the tween.
easing: EasingEasing curve.
Trait Implementations§
Source§impl Clone for TransitionSpec
impl Clone for TransitionSpec
Source§fn clone(&self) -> TransitionSpec
fn clone(&self) -> TransitionSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionSpec
impl Debug for TransitionSpec
Source§impl PartialEq for TransitionSpec
impl PartialEq for TransitionSpec
Source§fn eq(&self, other: &TransitionSpec) -> bool
fn eq(&self, other: &TransitionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TransitionSpec
impl StructuralPartialEq for TransitionSpec
Auto Trait Implementations§
impl Freeze for TransitionSpec
impl RefUnwindSafe for TransitionSpec
impl Send for TransitionSpec
impl Sync for TransitionSpec
impl Unpin for TransitionSpec
impl UnsafeUnpin for TransitionSpec
impl UnwindSafe for TransitionSpec
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.