#[non_exhaustive]pub struct Keyframe {
pub offset: Option<f32>,
pub value: f32,
pub easing: Option<Easing>,
}Expand description
One keyframe of a value: where it is at offset (0..=1 of an
iteration) and the easing of the segment that starts there.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: Option<f32>Where it is in the iteration, 0..=1; None spreads it evenly
between its neighbors (the first is 0 and the last 1 by default).
value: f32The value there.
easing: Option<Easing>The curve to the next keyframe (None: the timing’s).
Implementations§
Trait Implementations§
impl Copy for Keyframe
impl StructuralPartialEq for Keyframe
Auto Trait Implementations§
impl Forget for Keyframe
impl Freeze for Keyframe
impl Move for Keyframe
impl RefUnwindSafe for Keyframe
impl Send for Keyframe
impl Sync for Keyframe
impl Unpin for Keyframe
impl UnsafeUnpin for Keyframe
impl UnwindSafe for Keyframe
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