pub enum Easing {
Linear,
EaseIn,
EaseOut,
EaseInOut,
CubicIn,
CubicOut,
CubicInOut,
ExpoIn,
ExpoOut,
ElasticOut,
BounceOut,
BackOut,
}Expand description
Standard easing functions for animations.
Variants§
Linear
Linear interpolation (no easing)
EaseIn
Ease in (slow start)
EaseOut
Ease out (slow end)
EaseInOut
Ease in and out (slow start and end)
CubicIn
Cubic ease in
CubicOut
Cubic ease out
CubicInOut
Cubic ease in and out
ExpoIn
Exponential ease in
ExpoOut
Exponential ease out
ElasticOut
Elastic bounce at end
BounceOut
Bounce at end
BackOut
Back ease out (overshoots then returns)
Implementations§
Trait Implementations§
impl Copy for Easing
impl Eq 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