pub struct TickContext {
pub elapsed: Duration,
pub progress: f32,
pub active_icons: usize,
pub finalized_icons: usize,
}Expand description
Payload for on_tick.
Fields§
§elapsed: DurationWall-clock time since the animation started.
progress: f32Global progress ∈ [0, 1] (average per-icon t, weighted equally).
active_icons: usizeIcons still moving.
finalized_icons: usizeIcons that have already reached their target this animation.
Trait Implementations§
Source§impl Clone for TickContext
impl Clone for TickContext
Source§fn clone(&self) -> TickContext
fn clone(&self) -> TickContext
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 moreAuto Trait Implementations§
impl Freeze for TickContext
impl RefUnwindSafe for TickContext
impl Send for TickContext
impl Sync for TickContext
impl Unpin for TickContext
impl UnsafeUnpin for TickContext
impl UnwindSafe for TickContext
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