pub enum Easing {
Linear,
SmoothStep,
EaseInCubic,
EaseOutCubic,
EaseInOutCubic,
EaseOutExpo,
EaseOutBack,
}Expand description
Easing curve used to remap normalized tween progress.
Curves receive progress in 0.0..=1.0 and return a remapped progress value.
Some curves may overshoot above 1.0 to create a spring-like visual feel.
Variants§
Linear
Constant speed with no acceleration.
SmoothStep
Smooth polynomial ramp with zero slope at both ends.
EaseInCubic
Cubic acceleration from rest.
EaseOutCubic
Cubic deceleration into rest.
EaseInOutCubic
Cubic acceleration and deceleration around the midpoint.
EaseOutExpo
Fast exponential movement that settles near the end.
EaseOutBack
Overshoots the target, then settles back.
Implementations§
Trait Implementations§
impl Copy for Easing
impl Eq for Easing
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.