pub struct Keyframe<T>where
T: Clone,{
pub time: f64,
pub value: T,
pub easing: Easing,
}Expand description
A keyframe in an animation.
Fields§
§time: f64Time of this keyframe (0.0 to 1.0 normalized)
value: TValue at this keyframe
easing: EasingEasing to next keyframe
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Keyframe<T>where
T: Freeze,
impl<T> RefUnwindSafe for Keyframe<T>where
T: RefUnwindSafe,
impl<T> Send for Keyframe<T>where
T: Send,
impl<T> Sync for Keyframe<T>where
T: Sync,
impl<T> Unpin for Keyframe<T>where
T: Unpin,
impl<T> UnwindSafe for Keyframe<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