pub enum Easing {
}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(Vec<f32>)
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])
None
Implementations§
Trait Implementations§
source§impl PartialEq for Easing
impl PartialEq for Easing
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)