pub enum Curve {
Ease([f32; 4]),
Spring {
stiffness: f32,
damping: f32,
},
}Expand description
How a value gets from one end to the other.
Variants§
Ease([f32; 4])
A cubic bezier easing curve, as cubic-bezier(x1, y1, x2, y2) in CSS.
Used for anything that changes state.
Spring
A damped spring, integrated at a fixed rate. Used for anything a finger moved, because it settles rather than arriving.
Implementations§
Trait Implementations§
impl Copy for Curve
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnsafeUnpin for Curve
impl UnwindSafe for Curve
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