pub struct Timed<A> { /* private fields */ }Expand description
An animation with overridden timing; see AnimationExt.
Implementations§
Trait Implementations§
Source§impl<A: Animation> Animation for Timed<A>
impl<A: Animation> Animation for Timed<A>
Source§fn plan(&mut self, state: &SceneState)
fn plan(&mut self, state: &SceneState)
Called once when played, with the scene state at the start of the clip. Do the expensive
work (alignment, diffing) here.
Source§fn sample(&self, alpha: f32, state: &mut SceneState)
fn sample(&self, alpha: f32, state: &mut SceneState)
Writes the targets’ state at eased progress
alpha into state, which holds the scene
as it was at the start of the clip. Must be cheap and pure.Auto Trait Implementations§
impl<A> Freeze for Timed<A>where
A: Freeze,
impl<A> RefUnwindSafe for Timed<A>where
A: RefUnwindSafe,
impl<A> Send for Timed<A>where
A: Send,
impl<A> Sync for Timed<A>where
A: Sync,
impl<A> Unpin for Timed<A>where
A: Unpin,
impl<A> UnsafeUnpin for Timed<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for Timed<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<A> AnimationExt for Awhere
A: Animation,
impl<A> AnimationExt for Awhere
A: Animation,
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