pub enum EasingType {
Show 13 variants
EaseIn,
EaseOut,
EaseInAndOut,
Linear,
EaseInBack,
EaseOutBack,
EaseInAndOutBack,
CustomCubicBezier,
Gentle,
Quick,
Bouncy,
Slow,
CustomSpring,
}
Expand description
EasingType : This type is a string enum with the following possible values: - EASE_IN
: Ease in with an animation curve similar to CSS ease-in. - EASE_OUT
: Ease out with an animation curve similar to CSS ease-out. - EASE_IN_AND_OUT
: Ease in and then out with an animation curve similar to CSS ease-in-out. - LINEAR
: No easing, similar to CSS linear. - EASE_IN_BACK
: Ease in with an animation curve that moves past the initial keyframe’s value and then accelerates as it reaches the end. - EASE_OUT_BACK
: Ease out with an animation curve that starts fast, then slows and goes past the ending keyframe’s value. - EASE_IN_AND_OUT_BACK
: Ease in and then out with an animation curve that overshoots the initial keyframe’s value, then accelerates quickly before it slows and overshoots the ending keyframes value. - CUSTOM_CUBIC_BEZIER
: User-defined cubic bezier curve. - GENTLE
: Gentle animation similar to react-spring. - QUICK
: Quick spring animation, great for toasts and notifications. - BOUNCY
: Bouncy spring, for delightful animations like a heart bounce. - SLOW
: Slow spring, useful as a steady, natural way to scale up fullscreen content. - CUSTOM_SPRING
: User-defined spring animation.
This type is a string enum with the following possible values: - EASE_IN
: Ease in with an animation curve similar to CSS ease-in. - EASE_OUT
: Ease out with an animation curve similar to CSS ease-out. - EASE_IN_AND_OUT
: Ease in and then out with an animation curve similar to CSS ease-in-out. - LINEAR
: No easing, similar to CSS linear. - EASE_IN_BACK
: Ease in with an animation curve that moves past the initial keyframe’s value and then accelerates as it reaches the end. - EASE_OUT_BACK
: Ease out with an animation curve that starts fast, then slows and goes past the ending keyframe’s value. - EASE_IN_AND_OUT_BACK
: Ease in and then out with an animation curve that overshoots the initial keyframe’s value, then accelerates quickly before it slows and overshoots the ending keyframes value. - CUSTOM_CUBIC_BEZIER
: User-defined cubic bezier curve. - GENTLE
: Gentle animation similar to react-spring. - QUICK
: Quick spring animation, great for toasts and notifications. - BOUNCY
: Bouncy spring, for delightful animations like a heart bounce. - SLOW
: Slow spring, useful as a steady, natural way to scale up fullscreen content. - CUSTOM_SPRING
: User-defined spring animation.
Variants§
EaseIn
EaseOut
EaseInAndOut
Linear
EaseInBack
EaseOutBack
EaseInAndOutBack
CustomCubicBezier
Gentle
Quick
Bouncy
Slow
CustomSpring
Trait Implementations§
Source§impl Clone for EasingType
impl Clone for EasingType
Source§fn clone(&self) -> EasingType
fn clone(&self) -> EasingType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EasingType
impl Debug for EasingType
Source§impl Default for EasingType
impl Default for EasingType
Source§fn default() -> EasingType
fn default() -> EasingType
Source§impl<'de> Deserialize<'de> for EasingType
impl<'de> Deserialize<'de> for EasingType
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>,
Source§impl Display for EasingType
impl Display for EasingType
Source§impl Hash for EasingType
impl Hash for EasingType
Source§impl Ord for EasingType
impl Ord for EasingType
Source§fn cmp(&self, other: &EasingType) -> Ordering
fn cmp(&self, other: &EasingType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EasingType
impl PartialEq for EasingType
Source§impl PartialOrd for EasingType
impl PartialOrd for EasingType
Source§impl Serialize for EasingType
impl Serialize for EasingType
impl Copy for EasingType
impl Eq for EasingType
impl StructuralPartialEq for EasingType
Auto Trait Implementations§
impl Freeze for EasingType
impl RefUnwindSafe for EasingType
impl Send for EasingType
impl Sync for EasingType
impl Unpin for EasingType
impl UnwindSafe for EasingType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.