pub struct TransitionManager<T> { /* private fields */ }
Implementations§
Source§impl<T: Interpolatable> TransitionManager<T>
impl<T: Interpolatable> TransitionManager<T>
pub fn new(value: T, current_time: u64) -> Self
pub fn push_transition(&mut self, transition: TransitionQueueEntry<T>)
pub fn reset_transitions(&mut self, current_time: u64)
pub fn compute_eased_value(&mut self, frames_elapsed: u64) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TransitionManager<T>where
T: Freeze,
impl<T> !RefUnwindSafe for TransitionManager<T>
impl<T> !Send for TransitionManager<T>
impl<T> !Sync for TransitionManager<T>
impl<T> Unpin for TransitionManager<T>where
T: Unpin,
impl<T> !UnwindSafe for TransitionManager<T>
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
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.