#[non_exhaustive]pub enum Ease {
Linear,
Smooth,
In(Family),
Out(Family),
InOut(Family),
OutIn(Family),
Steps(u16),
}Expand description
A named ease curve. The module docs name each beside other engines’ names.
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
No easing: the value moves as the time does.
Smooth
Smoothstep, 3p² - 2p³: slow at both ends, fastest in the middle.
In(Family)
The family’s curve: slow at the start.
Out(Family)
The family’s curve backwards: slow at the end.
InOut(Family)
OutIn(Family)
Steps(u16)
n equal jumps, each at the end of its step, as CSS’s
steps(n, jump-end). Steps(0) acts as Steps(1), which holds the
start until the end.
Trait Implementations§
impl Copy for Ease
Source§impl<'de> Deserialize<'de> for Ease
impl<'de> Deserialize<'de> for Ease
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ease
impl StructuralPartialEq for Ease
Auto Trait Implementations§
impl Freeze for Ease
impl RefUnwindSafe for Ease
impl Send for Ease
impl Sync for Ease
impl Unpin for Ease
impl UnsafeUnpin for Ease
impl UnwindSafe for Ease
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