pub enum Easing {
Show 13 variants
Linear,
QuadraticIn,
QuadraticOut,
QuadraticInOut,
CubicIn,
CubicOut,
CubicInOut,
QuarticIn,
QuarticOut,
QuarticInOut,
Step(f32),
Tabular(SmoothArray),
None,
}Expand description
The easing functions are used to provide a smooth transition between two values over time. See: https://easings.net/ for more information.
Variants§
Linear
QuadraticIn
QuadraticOut
QuadraticInOut
CubicIn
CubicOut
CubicInOut
QuarticIn
QuarticOut
QuarticInOut
Step(f32)
Step(4)
Step(10)
Tabular(SmoothArray)
Easing described by a table of values. Values in between are interpolated.
For example, Easing::Tabular(vec![0.0, 0.1, 0.2, 0.4, 0.8, 1.0].into())
None
Implementations§
Trait Implementations§
impl StructuralPartialEq for Easing
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