pub struct ScrollPhysics {
pub friction: f32,
pub stiffness: f32,
pub damping: f32,
pub rubber_band_limit: f32,
}Expand description
Configurable physics constants for ScrollState.
Fields§
§friction: f32Exponential friction decay constant. Higher means faster deceleration.
stiffness: f32Stiffness of the overscroll spring.
damping: f32Damping of the overscroll spring.
rubber_band_limit: f32Maximum rows/cells the viewport can be rubber-banded past the edge.
Implementations§
Source§impl ScrollPhysics
impl ScrollPhysics
Trait Implementations§
Source§impl Clone for ScrollPhysics
impl Clone for ScrollPhysics
Source§fn clone(&self) -> ScrollPhysics
fn clone(&self) -> ScrollPhysics
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 ScrollPhysics
Source§impl Debug for ScrollPhysics
impl Debug for ScrollPhysics
Source§impl Default for ScrollPhysics
impl Default for ScrollPhysics
Source§impl PartialEq for ScrollPhysics
impl PartialEq for ScrollPhysics
impl StructuralPartialEq for ScrollPhysics
Auto Trait Implementations§
impl Freeze for ScrollPhysics
impl RefUnwindSafe for ScrollPhysics
impl Send for ScrollPhysics
impl Sync for ScrollPhysics
impl Unpin for ScrollPhysics
impl UnsafeUnpin for ScrollPhysics
impl UnwindSafe for ScrollPhysics
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