pub struct Keyframe<T: Animatable> {
pub time: f32,
pub value: T,
pub easing: Easing,
}Expand description
A single keyframe — a value at a specific time with an easing to the next.
Fields§
§time: f32Time in seconds from track start.
value: TValue at this keyframe.
easing: EasingEasing used from THIS keyframe to the NEXT one.
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> UnsafeUnpin for Keyframe<T>where
T: UnsafeUnpin,
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