pub enum EasingType {
Linear,
EaseIn,
EaseOut,
EaseInOut,
Step,
CubicBezier,
}Expand description
Easing functions for timeline interpolation
Variants§
Linear
Linear interpolation (constant speed)
EaseIn
Slow start, fast end
EaseOut
Fast start, slow end
EaseInOut
Slow start and end, fast middle
Step
Step function (instant change at keyframe)
CubicBezier
Custom cubic bezier (control points in keyframe)
Trait Implementations§
Source§impl Clone for EasingType
impl Clone for EasingType
Source§fn clone(&self) -> EasingType
fn clone(&self) -> EasingType
Returns a duplicate 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 EasingType
impl Debug for EasingType
Source§impl Default for EasingType
impl Default for EasingType
Source§fn default() -> EasingType
fn default() -> EasingType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EasingType
impl<'de> Deserialize<'de> for EasingType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EasingType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EasingType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EasingType
impl PartialEq for EasingType
Source§impl Serialize for EasingType
impl Serialize for EasingType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more