pub enum Easing {
Linear,
InQuad,
OutQuad,
InOutQuad,
InCubic,
OutCubic,
InOutCubic,
Bezier(f32, f32, f32, f32),
}Expand description
How an animation moves from its start to its end: what fraction of the way it has gone at each fraction of its time.
Variants§
Linear
The same speed all the way.
InQuad
Starts slow.
OutQuad
Ends slow.
InOutQuad
Starts and ends slow.
InCubic
Starts slower.
OutCubic
Ends slower. The default: it settles gently, as most interface motion should.
InOutCubic
Starts and ends slower.
Bezier(f32, f32, f32, f32)
A cubic Bézier from (0, 0) to (1, 1) through the control points
(x1, y1) and (x2, y2), as CSS’s cubic-bezier. The x values are
kept within 0 to 1.
Implementations§
Trait Implementations§
impl Copy for Easing
impl StructuralPartialEq for Easing
Auto Trait Implementations§
impl Forget for Easing
impl Freeze for Easing
impl Move 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