Enum easing_function::easings::StandardEasing

source ·
pub enum StandardEasing {
Show 31 variants InSine, OutSine, InOutSine, InQuadradic, OutQuadradic, InOutQuadradic, InCubic, OutCubic, InOutCubic, InQuartic, OutQuartic, InOutQuartic, InQuintic, OutQuintic, InOutQuintic, InExponential, OutExponential, InOutExponential, InCircular, OutCircular, InOutCircular, InBack, OutBack, InOutBack, InElastic, OutElastic, InOutElastic, InBounce, OutBounce, InOutBounce, Linear,
}
Expand description

An enumeration of all strandard easings provided.

Variants§

§

InSine

Eases in using a sine wave

See https://easings.net/#easeInSine for a visualization and more information.

§

OutSine

Eases out using a sine wave

See https://easings.net/#easeOutSine for a visualization and more information.

§

InOutSine

Eases in and out using a sine wave

See https://easings.net/#easeInOutSine for a visualization and more information.

§

InQuadradic

Eases in using a quadradic (x^2) curve

See https://easings.net/#easeInQuad for a visualization and more information.

§

OutQuadradic

Eases out using a quadradic (x^2) curve

See https://easings.net/#easeOutQuad for a visualization and more information.

§

InOutQuadradic

Eases in and out using a quadradic (x^2) curve

See https://easings.net/#easeInOutQuad for a visualization and more information.

§

InCubic

Eases in using a cubic (x^3) curve

See https://easings.net/#easeInCubic for a visualization and more information.

§

OutCubic

Eases out using a cubic (x^3) curve

See https://easings.net/#easeOutCubic for a visualization and more information.

§

InOutCubic

Eases in and out using a cubic (x^3) curve

See https://easings.net/#easeInOutCubic for a visualization and more information.

§

InQuartic

Eases in using a quartic (x^4) curve

See https://easings.net/#easeInQuart for a visualization and more information.

§

OutQuartic

Eases out using a quartic (x^4) curve

See https://easings.net/#easeOutQuart for a visualization and more information.

§

InOutQuartic

Eases in and out using a quartic (x^4) curve

See https://easings.net/#easeInOutQuart for a visualization and more information.

§

InQuintic

Eases in using a quintic (x^5) curve

See https://easings.net/#easeInQuint for a visualization and more information.

§

OutQuintic

Eases out using a quintic (x^5) curve

See https://easings.net/#easeOutQuint for a visualization and more information.

§

InOutQuintic

Eases in and out using a quintic (x^5) curve

See https://easings.net/#easeInOutQuint for a visualization and more information.

§

InExponential

Eases in using an expenential curve

See https://easings.net/#easeInExpo for a visualization and more information.

§

OutExponential

Eases out using an expenential curve

See https://easings.net/#easeOutExpo for a visualization and more information.

§

InOutExponential

Eases in and out using an expenential curve

See https://easings.net/#easeInOutExpo for a visualization and more information.

§

InCircular

Eases in using a curve resembling the top-left arc of a circle

See https://easings.net/#easeInCirc for a visualization and more information.

§

OutCircular

Eases out using a curve resembling the top-left arc of a circle

See https://easings.net/#easeOutCirc for a visualization and more information.

§

InOutCircular

Eases in and out using a curve resembling the top-left arc of a circle

See https://easings.net/#easeInOutCirc for a visualization and more information.

§

InBack

Eases in using a curve that backs away initially

See https://easings.net/#easeInBack for a visualization and more information.

§

OutBack

Eases out using a curve that backs away initially

See https://easings.net/#easeOutBack for a visualization and more information.

§

InOutBack

Eases in and out using a curve that backs away initially

See https://easings.net/#easeInOutBack for a visualization and more information.

§

InElastic

Eases in using a curve that bounces around the start initially then quickly accelerates

See https://easings.net/#easeInElastic for a visualization and more information.

§

OutElastic

Eases out using a curve that bounces around the start initially then quickly accelerates

See https://easings.net/#easeOutElastic for a visualization and more information.

§

InOutElastic

Eases in and out using a curve that bounces around the start initially then quickly accelerates

See https://easings.net/#easeInOutElastic for a visualization and more information.

§

InBounce

Eases in using a curve that bounces progressively closer as it progresses

See https://easings.net/#easeInBounce for a visualization and more information.

§

OutBounce

Eases out using a curve that bounces progressively closer as it progresses

See https://easings.net/#easeOutBounce for a visualization and more information.

§

InOutBounce

Eases in and out using a curve that bounces progressively closer as it progresses

See https://easings.net/#easeInOutBounce for a visualization and more information.

§

Linear

Eases linearly

Implementations§

source§

impl StandardEasing

source

pub fn all() -> &'static [StandardEasing]

Returns a collection of every variant of this enum.

Trait Implementations§

source§

impl Clone for StandardEasing

source§

fn clone(&self) -> StandardEasing

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StandardEasing

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for StandardEasing

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Easing for StandardEasing

source§

fn ease(&self, percent: f32) -> f32

Eases a value ranging between zero and one. The resulting value does not need to be bounded between zero and one.
source§

impl From<StandardEasing> for EasingFunction

source§

fn from(easing: StandardEasing) -> Self

Converts to this type from the input type.
source§

impl Hash for StandardEasing

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for StandardEasing

source§

fn eq(&self, other: &StandardEasing) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for StandardEasing

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<EasingFunction> for StandardEasing

§

type Error = NonStandardEasing

The type returned in the event of a conversion error.
source§

fn try_from(func: EasingFunction) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for StandardEasing

source§

impl Eq for StandardEasing

source§

impl StructuralPartialEq for StandardEasing

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,