pub struct TweenSnapshot {
pub elapsed: f32,
pub delay_elapsed: f32,
pub loop_count: u32,
pub ping_pong_reverse: bool,
pub state: TweenState,
}Expand description
Immutable runtime state snapshot for Tween.
This is useful for batch evaluators that need to mirror a tween’s current clock state without mutating it.
Fields§
§elapsed: f32Elapsed animation time inside the current pass, excluding delay.
delay_elapsed: f32Elapsed delay time.
loop_count: u32Completed loop count.
ping_pong_reverse: booltrue when a ping-pong tween is currently playing backward.
state: TweenStateCurrent execution state.
Trait Implementations§
Source§impl Clone for TweenSnapshot
impl Clone for TweenSnapshot
Source§fn clone(&self) -> TweenSnapshot
fn clone(&self) -> TweenSnapshot
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 moreSource§impl Debug for TweenSnapshot
impl Debug for TweenSnapshot
Source§impl PartialEq for TweenSnapshot
impl PartialEq for TweenSnapshot
Source§fn eq(&self, other: &TweenSnapshot) -> bool
fn eq(&self, other: &TweenSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TweenSnapshot
Auto Trait Implementations§
impl Freeze for TweenSnapshot
impl RefUnwindSafe for TweenSnapshot
impl Send for TweenSnapshot
impl Sync for TweenSnapshot
impl Unpin for TweenSnapshot
impl UnsafeUnpin for TweenSnapshot
impl UnwindSafe for TweenSnapshot
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