pub struct AnimationPatch {
pub duration: Option<Duration>,
pub delay: Option<Delay>,
pub easing: Option<Easing>,
pub iterations: Option<f32>,
pub direction: Option<Direction>,
pub fill: Option<FillMode>,
pub play_state: Option<PlayState>,
/* private fields */
}Expand description
animation-* longhands without a list: a lone animation-play-state: paused or
animation-fill-mode: forwards (reka-ui’s Presence writes it) must not delete the animation
the sheet started, so it applies as a patch over the winning list.
Fields§
§duration: Option<Duration>§delay: Option<Delay>§easing: Option<Easing>§iterations: Option<f32>§direction: Option<Direction>§fill: Option<FillMode>§play_state: Option<PlayState>Implementations§
Source§impl AnimationPatch
impl AnimationPatch
pub fn is_empty(&self) -> bool
pub fn apply_over(&self, into: &mut AnimationPatch)
pub fn apply(&self, spec: &mut AnimationSpec)
Trait Implementations§
Source§impl Clone for AnimationPatch
impl Clone for AnimationPatch
Source§impl Debug for AnimationPatch
impl Debug for AnimationPatch
Source§impl Default for AnimationPatch
impl Default for AnimationPatch
Source§impl PartialEq for AnimationPatch
impl PartialEq for AnimationPatch
impl StructuralPartialEq for AnimationPatch
Auto Trait Implementations§
impl !Send for AnimationPatch
impl !Sync for AnimationPatch
impl Forget for AnimationPatch
impl Freeze for AnimationPatch
impl Move for AnimationPatch
impl RefUnwindSafe for AnimationPatch
impl Unpin for AnimationPatch
impl UnsafeUnpin for AnimationPatch
impl UnwindSafe for AnimationPatch
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more