#[repr(C, u32)]pub enum EasingCurve {
Linear,
CubicBezier([f32; 4]),
EaseInElastic,
EaseOutElastic,
EaseInOutElastic,
EaseInBounce,
EaseOutBounce,
EaseInOutBounce,
}
Expand description
The representation of an easing curve, for animations
Variants§
Linear
The linear curve
CubicBezier([f32; 4])
A Cubic bezier curve, with its 4 parameters
EaseInElastic
Easing curve as defined at: https://easings.net/#easeInElastic
EaseOutElastic
Easing curve as defined at: https://easings.net/#easeOutElastic
EaseInOutElastic
Easing curve as defined at: https://easings.net/#easeInOutElastic
EaseInBounce
Easing curve as defined at: https://easings.net/#easeInBounce
EaseOutBounce
Easing curve as defined at: https://easings.net/#easeOutBounce
EaseInOutBounce
Easing curve as defined at: https://easings.net/#easeInOutBounce
Trait Implementations§
Source§impl Clone for EasingCurve
impl Clone for EasingCurve
Source§fn clone(&self) -> EasingCurve
fn clone(&self) -> EasingCurve
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EasingCurve
impl Debug for EasingCurve
Source§impl Default for EasingCurve
impl Default for EasingCurve
Source§fn default() -> EasingCurve
fn default() -> EasingCurve
Returns the “default value” for a type. Read more
Source§impl PartialEq for EasingCurve
impl PartialEq for EasingCurve
impl Copy for EasingCurve
impl StructuralPartialEq for EasingCurve
Auto Trait Implementations§
impl Freeze for EasingCurve
impl RefUnwindSafe for EasingCurve
impl Send for EasingCurve
impl Sync for EasingCurve
impl Unpin for EasingCurve
impl UnwindSafe for EasingCurve
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