pub enum EasingFunction {
Linear,
EaseInOut,
EaseOut,
Spring,
}Expand description
Easing functions for smooth scroll animations
Variants§
Linear
EaseInOut
EaseOut
Spring
Critically-damped spring settle (ledger #28, per the animation design doc): position eases like a spring released toward the target — fast initial pull, asymptote-free exact landing. Evaluated analytically from normalized time (same curve family the scroll physics integrates numerically).
Trait Implementations§
Source§impl Clone for EasingFunction
impl Clone for EasingFunction
Source§fn clone(&self) -> EasingFunction
fn clone(&self) -> EasingFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EasingFunction
Source§impl Debug for EasingFunction
impl Debug for EasingFunction
impl Eq for EasingFunction
Source§impl PartialEq for EasingFunction
impl PartialEq for EasingFunction
impl StructuralPartialEq for EasingFunction
Auto Trait Implementations§
impl Freeze for EasingFunction
impl RefUnwindSafe for EasingFunction
impl Send for EasingFunction
impl Sync for EasingFunction
impl Unpin for EasingFunction
impl UnsafeUnpin for EasingFunction
impl UnwindSafe for EasingFunction
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