pub struct SettleAnimation { /* private fields */ }Expand description
Drives a damped spring toward a settle target on a scroll container, taking over the gesture’s release velocity so a policy-adjusted rest position (or an overscroll bounce-back) still reads as one continuous deceleration.
Implementations§
Source§impl SettleAnimation
impl SettleAnimation
pub fn new(runtime: RuntimeHandle, params: SpringParams) -> Self
pub fn cancel(&self)
pub fn is_running(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SettleAnimation
impl !Send for SettleAnimation
impl !Sync for SettleAnimation
impl !UnwindSafe for SettleAnimation
impl Freeze for SettleAnimation
impl Unpin for SettleAnimation
impl UnsafeUnpin for SettleAnimation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more