pub enum LoopBehavior {
Infinite = 0,
Once = 1,
PingPong = 2,
Reverse = 3,
}Expand description
Loop behavior for animations
Variants§
Infinite = 0
Loop infinitely
Once = 1
Play once and stop
PingPong = 2
Ping-pong (forward then reverse)
Reverse = 3
Reverse loop
Implementations§
Trait Implementations§
Source§impl Clone for LoopBehavior
impl Clone for LoopBehavior
Source§fn clone(&self) -> LoopBehavior
fn clone(&self) -> LoopBehavior
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 LoopBehavior
Source§impl Debug for LoopBehavior
impl Debug for LoopBehavior
impl Eq for LoopBehavior
Source§impl PartialEq for LoopBehavior
impl PartialEq for LoopBehavior
Source§fn eq(&self, other: &LoopBehavior) -> bool
fn eq(&self, other: &LoopBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoopBehavior
Auto Trait Implementations§
impl Freeze for LoopBehavior
impl RefUnwindSafe for LoopBehavior
impl Send for LoopBehavior
impl Sync for LoopBehavior
impl Unpin for LoopBehavior
impl UnsafeUnpin for LoopBehavior
impl UnwindSafe for LoopBehavior
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,
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