pub enum AnimationMode {
Loop,
Once,
PingPong,
}Expand description
Defines how an animation behaves when it reaches the last frame.
Variants§
Loop
The animation loops back to the first frame after the last frame.
Once
The animation plays once and stops on the last frame.
PingPong
The animation plays forward then backward alternately.
Trait Implementations§
Source§impl Clone for AnimationMode
impl Clone for AnimationMode
Source§fn clone(&self) -> AnimationMode
fn clone(&self) -> AnimationMode
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 AnimationMode
Source§impl Debug for AnimationMode
impl Debug for AnimationMode
Source§impl Default for AnimationMode
impl Default for AnimationMode
Source§fn default() -> AnimationMode
fn default() -> AnimationMode
Returns the “default value” for a type. Read more
impl Eq for AnimationMode
Source§impl PartialEq for AnimationMode
impl PartialEq for AnimationMode
Source§fn eq(&self, other: &AnimationMode) -> bool
fn eq(&self, other: &AnimationMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnimationMode
Auto Trait Implementations§
impl Freeze for AnimationMode
impl RefUnwindSafe for AnimationMode
impl Send for AnimationMode
impl Sync for AnimationMode
impl Unpin for AnimationMode
impl UnsafeUnpin for AnimationMode
impl UnwindSafe for AnimationMode
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