#[non_exhaustive]pub enum Family {
Sine,
Quad,
Cubic,
Quart,
Quint,
Expo,
Circ,
Back,
Elastic,
Bounce,
}Expand description
The ten families of Penner’s curves, as easings.net names them, from the gentlest to the ones that overshoot and bounce.
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.
Sine
A quarter of a sine wave.
Quad
p².
Cubic
p³.
Quart
p⁴.
Quint
p⁵.
Expo
2^(10p - 10): still, then fast.
Circ
A quarter of a circle.
Back
Pulls back a little before it goes.
Elastic
Springs back and forth.
Bounce
Bounces off its end.
Trait Implementations§
impl Copy for Family
Source§impl<'de> Deserialize<'de> for Family
impl<'de> Deserialize<'de> for Family
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 Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnsafeUnpin for Family
impl UnwindSafe for Family
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