pub enum Easing {
Linear,
In,
Out,
InOut,
}Expand description
Timing curve for animation interpolation.
Controls how the animation progresses over time. The default is InOut
which provides smooth acceleration and deceleration.
§Examples
ⓘ
// Linear motion (constant speed)
builder.easing(Easing::Linear)
// Smooth start and end (default)
builder.easing(Easing::InOut)Variants§
Linear
Constant speed throughout the animation.
In
Slow start, accelerating to full speed.
Out
Fast start, decelerating to a stop.
InOut
Slow start and end with acceleration in the middle (default).
Trait Implementations§
impl Copy for Easing
impl Eq 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 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