pub struct IconAnimationState {
pub id: IconId,
pub origin: Point,
pub current: Point,
pub target: Point,
pub t: f32,
pub is_final: bool,
}Expand description
Per-icon state, captured under a snapshot lock.
Fields§
§id: IconId§origin: Point§current: Point§target: Point§t: f32Normalized time in [0, 1] — how far this icon is through its own
animation, independent of the global animation clock.
is_final: booltrue once the engine has issued the icon’s final commit.
Trait Implementations§
Source§impl Clone for IconAnimationState
impl Clone for IconAnimationState
Source§impl Debug for IconAnimationState
impl Debug for IconAnimationState
Source§impl PartialEq for IconAnimationState
impl PartialEq for IconAnimationState
impl StructuralPartialEq for IconAnimationState
Auto Trait Implementations§
impl Freeze for IconAnimationState
impl RefUnwindSafe for IconAnimationState
impl Send for IconAnimationState
impl Sync for IconAnimationState
impl Unpin for IconAnimationState
impl UnsafeUnpin for IconAnimationState
impl UnwindSafe for IconAnimationState
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