pub enum Repeat {
None,
Times(u32),
Infinite,
}Expand description
Describes the looping behavior of an animation timeline.
Variants§
None
Animation does not repeat; it plays once and then ends.
Times(u32)
Animation repeats for a given number of cycles, looping or reversing back to the beginning each time. Ends after the last cycle is completed.
Infinite
Animation repeats infinitely and never ends, looping or reversing back to the beginning each time it repeats.
Trait Implementations§
impl Copy for Repeat
Auto Trait Implementations§
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnwindSafe for Repeat
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