pub struct Keyframe {
pub offset: f64,
pub progress: f64,
}Expand description
One point of a cycle’s curve: what AnimSpec::keyframes yields.
Fields§
§offset: f64When, as a fraction of the cycle: 0.0 at its start, 1.0 at its end.
progress: f64The progress there: 0 is the start value, 1 the target. Outside 0..=1 where a
spring overshoots.
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