#[non_exhaustive]#[repr(i32)]pub enum EasingKind {
Quadratic = 0,
Cubic = 1,
Quartic = 2,
Quintic = 3,
Sine = 4,
Circle = 5,
Back = 6,
Bounce = 7,
Elastic = 8,
Exponential = 9,
Power = 10,
}Expand description
The concrete easing curve. Ordinals match the kind switch in
cpp/noesis_animation.cpp.
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.
Quadratic = 0
t^2.
Cubic = 1
t^3.
Quartic = 2
t^4.
Quintic = 3
t^5.
Sine = 4
Sinusoidal.
Circle = 5
Circular arc.
Back = 6
Retracts slightly before moving (see EasingFunction::set_amplitude).
Bounce = 7
Bouncing (see EasingFunction::set_oscillations /
EasingFunction::set_springiness).
Elastic = 8
Spring-like oscillation.
Exponential = 9
Exponential (see EasingFunction::set_exponent).
Power = 10
Configurable power (see EasingFunction::set_power).
Trait Implementations§
Source§impl Clone for EasingKind
impl Clone for EasingKind
Source§fn clone(&self) -> EasingKind
fn clone(&self) -> EasingKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EasingKind
Source§impl Debug for EasingKind
impl Debug for EasingKind
impl Eq for EasingKind
Source§impl PartialEq for EasingKind
impl PartialEq for EasingKind
Source§fn eq(&self, other: &EasingKind) -> bool
fn eq(&self, other: &EasingKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EasingKind
Auto Trait Implementations§
impl Freeze for EasingKind
impl RefUnwindSafe for EasingKind
impl Send for EasingKind
impl Sync for EasingKind
impl Unpin for EasingKind
impl UnsafeUnpin for EasingKind
impl UnwindSafe for EasingKind
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