pub enum Easing {
Linear,
EaseIn,
EaseOut,
EaseInOut,
CubicBezier(CubicBezier),
}Expand description
A named or custom timing function used to shape how progress [0.0, 1.0]
maps to eased progress over the course of a crate::Transition.
Variants§
Linear
Constant rate of change; progress and eased progress are equal.
EaseIn
Starts slow and accelerates towards the end.
EaseOut
Starts fast and decelerates towards the end.
EaseInOut
Starts slow, speeds up through the middle, and slows down again.
CubicBezier(CubicBezier)
A user-supplied cubic-bezier curve, for timing functions not covered by the built-in presets.
Implementations§
Source§impl Easing
impl Easing
pub const EASE_IN: CubicBezier
pub const EASE_OUT: CubicBezier
pub const EASE_IN_OUT: CubicBezier
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