#[non_exhaustive]#[repr(i32)]pub enum EasingMode {
EaseOut = 0,
EaseIn = 1,
EaseInOut = 2,
}Expand description
How an easing function interpolates over the animation’s progress. Ordinals
match Noesis::EasingMode.
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.
EaseOut = 0
100% - f(t), decelerating.
EaseIn = 1
f(t), accelerating.
EaseInOut = 2
EaseIn for the first half, EaseOut for the second.
Trait Implementations§
Source§impl Clone for EasingMode
impl Clone for EasingMode
Source§fn clone(&self) -> EasingMode
fn clone(&self) -> EasingMode
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 EasingMode
Source§impl Debug for EasingMode
impl Debug for EasingMode
impl Eq for EasingMode
Source§impl PartialEq for EasingMode
impl PartialEq for EasingMode
Source§fn eq(&self, other: &EasingMode) -> bool
fn eq(&self, other: &EasingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EasingMode
Auto Trait Implementations§
impl Freeze for EasingMode
impl RefUnwindSafe for EasingMode
impl Send for EasingMode
impl Sync for EasingMode
impl Unpin for EasingMode
impl UnsafeUnpin for EasingMode
impl UnwindSafe for EasingMode
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