pub enum ScrollFeel {
Bouncing(ScrollDecelerationRate),
Clamping,
}Expand description
How a scrollable behaves at its edges and after a fling — what the reference’s bouncing and clamping physics differ by.
Variants§
Bouncing(ScrollDecelerationRate)
Overscroll is allowed, resisted, and springs back — at the given rate.
Clamping
Overscroll is refused; a fling stops at the edge.
Trait Implementations§
Source§impl Clone for ScrollFeel
impl Clone for ScrollFeel
impl Copy for ScrollFeel
Source§impl Debug for ScrollFeel
impl Debug for ScrollFeel
impl Eq for ScrollFeel
Source§impl Hash for ScrollFeel
impl Hash for ScrollFeel
Source§impl PartialEq for ScrollFeel
impl PartialEq for ScrollFeel
impl StructuralPartialEq for ScrollFeel
Auto Trait Implementations§
impl Freeze for ScrollFeel
impl RefUnwindSafe for ScrollFeel
impl Send for ScrollFeel
impl Sync for ScrollFeel
impl Unpin for ScrollFeel
impl UnsafeUnpin for ScrollFeel
impl UnwindSafe for ScrollFeel
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