pub struct Animation<I: Clone + Sized, X: Time, T: Keyframes<I, X>> { /* private fields */ }Expand description
Running keyframes animation started at a specific time.
Implementations§
source§impl<I: Clone + Sized, X: Time, T: Keyframes<I, X>> Animation<I, X, T>
impl<I: Clone + Sized, X: Time, T: Keyframes<I, X>> Animation<I, X, T>
sourcepub fn start(keyframes: T, start_time: X) -> Self
pub fn start(keyframes: T, start_time: X) -> Self
Start the animation at a specific time.
keyframes- The transition to animate.start_time- The time to start the animation, usuallyInstant::now().
sourcepub fn start_time(&self) -> X
pub fn start_time(&self) -> X
Get the start time of the animation.
Trait Implementations§
Auto Trait Implementations§
impl<I, X, T> Freeze for Animation<I, X, T>
impl<I, X, T> RefUnwindSafe for Animation<I, X, T>
impl<I, X, T> Send for Animation<I, X, T>
impl<I, X, T> Sync for Animation<I, X, T>
impl<I, X, T> Unpin for Animation<I, X, T>
impl<I, X, T> UnwindSafe for Animation<I, X, 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)