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
impl Copy for AnimationMode
Source§impl Debug for AnimationMode
impl Debug for AnimationMode
Source§impl Default for AnimationMode
impl Default for AnimationMode
impl Eq for AnimationMode
Source§impl PartialEq for AnimationMode
impl PartialEq for AnimationMode
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