pub struct Tween<T> { /* private fields */ }Expand description
Animates a Signal towards a target. Created by Signal::to.
The first poll captures the start value and the task time; every later
poll is one frame. On completion the task time is advanced to exactly
start + duration, not to the frame time, so chained tweens do not
accumulate rounding drift.
Implementations§
Source§impl<T: Lerp + Clone + 'static> Tween<T>
impl<T: Lerp + Clone + 'static> Tween<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Tween<T>
impl<T> !Send for Tween<T>
impl<T> !Sync for Tween<T>
impl<T> !UnwindSafe for Tween<T>
impl<T> Freeze for Tween<T>
impl<T> Unpin for Tween<T>
impl<T> UnsafeUnpin for Tween<T>
Blanket Implementations§
impl<F> Animation for Fwhere
F: Future,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more