pub struct KeyframesSpec<T: Clone> {
pub keyframes: Vec<(f32, T, Option<Easing>)>,
}Expand description
A keyframe animation specification.
Defines a sequence of keyframes at specific timestamps (0.0 to 1.0), with target values and optional easing between each pair.
Fields§
§keyframes: Vec<(f32, T, Option<Easing>)>Keyframes as (timestamp 0.0-1.0, value, optional easing between previous and this). The first keyframe should be at t=0.0 and uses no easing.
Implementations§
Source§impl<T: Clone + Interpolate> KeyframesSpec<T>
impl<T: Clone + Interpolate> KeyframesSpec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for KeyframesSpec<T>
impl<T> RefUnwindSafe for KeyframesSpec<T>where
T: RefUnwindSafe,
impl<T> Send for KeyframesSpec<T>where
T: Send,
impl<T> Sync for KeyframesSpec<T>where
T: Sync,
impl<T> Unpin for KeyframesSpec<T>where
T: Unpin,
impl<T> UnsafeUnpin for KeyframesSpec<T>
impl<T> UnwindSafe for KeyframesSpec<T>where
T: UnwindSafe,
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