pub enum Easing {
Linear,
EaseIn,
EaseOut,
EaseInOut,
CubicBezier(f32, f32, f32, f32),
}Expand description
Timing function mapping normalized time t in [0, 1] to eased progress.
Variants§
Linear
EaseIn
EaseOut
EaseInOut
CubicBezier(f32, f32, f32, f32)
CSS cubic-bezier(x1, y1, x2, y2) with control points P1/P2 (P0=(0,0), P3=(1,1)).
Implementations§
Trait Implementations§
impl Copy 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