pub struct Slide { /* private fields */ }Expand description
Interpolates an i16 value between from and to over a duration.
Animation::value returns the normalized progress; use Slide::position
for the interpolated integer position.
Implementations§
Trait Implementations§
Source§impl Animation for Slide
impl Animation for Slide
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Whether the animation has reached its end.
impl Copy for Slide
Auto Trait Implementations§
impl Freeze for Slide
impl RefUnwindSafe for Slide
impl Send for Slide
impl Sync for Slide
impl Unpin for Slide
impl UnwindSafe for Slide
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