pub struct RepeatableSpec {
pub iterations: Option<u32>,
pub reverse: bool,
pub delay_between: Duration,
}Expand description
A repeatable animation specification.
Wraps another animation spec and causes it to repeat. Default: infinite repeat with no reverse.
Fields§
§iterations: Option<u32>Number of repetitions. None means infinite.
reverse: boolIf true, alternate direction each iteration (forward, backward, forward…).
delay_between: DurationDelay between each iteration.
Implementations§
Trait Implementations§
Source§impl Clone for RepeatableSpec
impl Clone for RepeatableSpec
Source§fn clone(&self) -> RepeatableSpec
fn clone(&self) -> RepeatableSpec
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 RepeatableSpec
Source§impl Debug for RepeatableSpec
impl Debug for RepeatableSpec
Auto Trait Implementations§
impl Freeze for RepeatableSpec
impl RefUnwindSafe for RepeatableSpec
impl Send for RepeatableSpec
impl Sync for RepeatableSpec
impl Unpin for RepeatableSpec
impl UnsafeUnpin for RepeatableSpec
impl UnwindSafe for RepeatableSpec
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