pub struct SnapToPageBoundaries { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Clone for SnapToPageBoundaries
impl Clone for SnapToPageBoundaries
Source§fn clone(&self) -> SnapToPageBoundaries
fn clone(&self) -> SnapToPageBoundaries
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapToPageBoundaries
impl Debug for SnapToPageBoundaries
Source§impl Default for SnapToPageBoundaries
impl Default for SnapToPageBoundaries
Source§impl MomentumBehavior for SnapToPageBoundaries
impl MomentumBehavior for SnapToPageBoundaries
Source§fn released_with_velocity(&mut self, position: f64, velocity: f64)
fn released_with_velocity(&mut self, position: f64, velocity: f64)
Called when the drag is released with a velocity (units per second)
Source§fn next_position(&mut self, current_position: f64, elapsed_seconds: f64) -> f64
fn next_position(&mut self, current_position: f64, elapsed_seconds: f64) -> f64
Get the next position after elapsed time
This should also update internal state (like decaying velocity)
Source§fn is_stopped(&self, position: f64) -> bool
fn is_stopped(&self, position: f64) -> bool
Check if the animation has stopped
Auto Trait Implementations§
impl Freeze for SnapToPageBoundaries
impl RefUnwindSafe for SnapToPageBoundaries
impl Send for SnapToPageBoundaries
impl Sync for SnapToPageBoundaries
impl Unpin for SnapToPageBoundaries
impl UnsafeUnpin for SnapToPageBoundaries
impl UnwindSafe for SnapToPageBoundaries
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