pub enum Easing {
Linear,
EaseIn,
EaseOut,
EaseInOut,
SpringCrit {
omega: f32,
},
SpringGentle,
SpringBouncy,
}Variants§
Linear
EaseIn
EaseOut
EaseInOut
SpringCrit
Monotonic, critically-damped, y(t)=1-(1+ω t)e^{-ω t}, t∈[0,1].
SpringGentle
Underdamped, low-overshoot preset (ζ≈0.5, ω≈8)
SpringBouncy
Underdamped, bouncier preset (ζ≈0.2, ω≈12)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Easing
impl RefUnwindSafe for Easing
impl Send for Easing
impl Sync for Easing
impl Unpin for Easing
impl UnwindSafe for Easing
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