pub enum AnimationState {
Idle,
Running,
Paused,
Completed,
Canceled,
}Expand description
Lifecycle state of an animation.
Variants§
Idle
The animation has not started.
Running
The animation is advancing.
Paused
The animation is suspended and retains its current value.
Completed
The animation reached its final value.
Canceled
The animation was canceled before completion.
Trait Implementations§
Source§impl Clone for AnimationState
impl Clone for AnimationState
Source§fn clone(&self) -> AnimationState
fn clone(&self) -> AnimationState
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 moreimpl Copy for AnimationState
Source§impl Debug for AnimationState
impl Debug for AnimationState
impl Eq for AnimationState
Source§impl PartialEq for AnimationState
impl PartialEq for AnimationState
Source§fn eq(&self, other: &AnimationState) -> bool
fn eq(&self, other: &AnimationState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationState
Auto Trait Implementations§
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl Send for AnimationState
impl Sync for AnimationState
impl Unpin for AnimationState
impl UnsafeUnpin for AnimationState
impl UnwindSafe for AnimationState
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