#[non_exhaustive]pub enum Easing {
Linear,
EaseIn,
EaseOut,
EaseInOut,
Emphasized,
Bezier(CubicBezier),
}Expand description
How a timed transition moves from start to end.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
Constant speed; for loops and scrubbing.
EaseIn
Starts slowly; for things that leave for good.
EaseOut
Starts fast and settles; acknowledges input at once.
EaseInOut
Slow at both ends; for things moving from one resting place to another.
Emphasized
A long, soft landing; for large surfaces entering.
Bezier(CubicBezier)
Any other curve.
Implementations§
Trait Implementations§
impl Copy 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 UnsafeUnpin for Easing
impl UnwindSafe for Easing
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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