pub enum Easing {
Show 13 variants
Linear,
EaseIn,
EaseOut,
EaseInOut,
CircIn,
CircOut,
CircInOut,
BackIn,
BackOut,
BackInOut,
Spring(SpringConfig),
Bezier(f64, f64, f64, f64),
CubicBezier(CubicBezier),
}Expand description
Easing function types
Variants§
Linear
Linear interpolation
EaseIn
Ease in (slow start)
EaseOut
Ease out (slow end)
EaseInOut
Ease in and out (slow start and end)
CircIn
Circular easing in
CircOut
Circular easing out
CircInOut
Circular easing in and out
BackIn
Back easing in (overshoot)
BackOut
Back easing out (overshoot)
BackInOut
Back easing in and out (overshoot)
Spring(SpringConfig)
Spring physics
Bezier(f64, f64, f64, f64)
Cubic bezier curve (tuple format)
CubicBezier(CubicBezier)
Cubic bezier curve (struct format)
Implementations§
Trait Implementations§
Source§impl From<CubicBezier> for Easing
impl From<CubicBezier> for Easing
Source§fn from(cb: CubicBezier) -> Easing
fn from(cb: CubicBezier) -> Easing
Converts to this type from the input type.
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.