pub struct DecayAnimationSpec {
pub friction: f32,
pub stop_threshold: f32,
}Expand description
Decay animation configuration.
Models a damped decay (e.g., for fling-to-stop animations).
Fields§
§friction: f32How quickly the animation decelerates. Lower = faster stop.
stop_threshold: f32Minimum velocity threshold to stop.
Implementations§
Trait Implementations§
Source§impl Clone for DecayAnimationSpec
impl Clone for DecayAnimationSpec
Source§fn clone(&self) -> DecayAnimationSpec
fn clone(&self) -> DecayAnimationSpec
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 DecayAnimationSpec
Source§impl Debug for DecayAnimationSpec
impl Debug for DecayAnimationSpec
Auto Trait Implementations§
impl Freeze for DecayAnimationSpec
impl RefUnwindSafe for DecayAnimationSpec
impl Send for DecayAnimationSpec
impl Sync for DecayAnimationSpec
impl Unpin for DecayAnimationSpec
impl UnsafeUnpin for DecayAnimationSpec
impl UnwindSafe for DecayAnimationSpec
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