pub enum Easing {
Linear,
EaseOutCubic,
EaseInOutCubic,
EaseOutBack,
EaseOutQuint,
EaseInCubic,
SpringGentle,
SpringSnappy,
}Expand description
Mathematical easing curves applied to retained scene node transitions.
Variants§
Linear
Constant velocity interpolation.
EaseOutCubic
Smooth deceleration curve ideal for UI entrances and drawers.
EaseInOutCubic
Symmetric accelerate-then-decelerate curve.
EaseOutBack
Subtle spring-like overshoot curve for modal and popover entrances.
EaseOutQuint
Emphasized quintic deceleration curve (1 - (1 - t)^5) for silky-smooth drawers and sheets.
EaseInCubic
Crisp cubic acceleration curve (t^3) for natural overlay and drawer exits.
SpringGentle
Lightly damped physical spring curve for expressive drawers, sheets, and floating cards.
SpringSnappy
Crisp high-stiffness spring curve for responsive modals, popovers, and pill transitions.
Implementations§
Trait Implementations§
impl Copy for Easing
impl Eq 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