pub struct ExplicitRubberBandBoundary(pub RubberBandSpec);Expand description
Explicit-request (opt-in) rubber-band boundary (Windows/Linux desktop default): hard-clamps plain containers
while honoring Scroll::bounce(true) and ScrollBoundaryMode::Bounce.
Tuple Fields§
§0: RubberBandSpecTrait Implementations§
Source§impl BoundaryPhysics for ExplicitRubberBandBoundary
impl BoundaryPhysics for ExplicitRubberBandBoundary
Source§fn bounce_by_default(&self) -> bool
fn bounce_by_default(&self) -> bool
Whether rubber-band stretch is active by default even when
Scroll::bounce is false.Source§fn rubber_band_spec(&self) -> Option<RubberBandSpec>
fn rubber_band_spec(&self) -> Option<RubberBandSpec>
Returns the asymptotic rubber-band resistance spec, or
None for hard clamping.Source§impl Clone for ExplicitRubberBandBoundary
impl Clone for ExplicitRubberBandBoundary
impl Copy for ExplicitRubberBandBoundary
Source§impl Debug for ExplicitRubberBandBoundary
impl Debug for ExplicitRubberBandBoundary
Source§impl Default for ExplicitRubberBandBoundary
impl Default for ExplicitRubberBandBoundary
impl StructuralPartialEq for ExplicitRubberBandBoundary
Auto Trait Implementations§
impl Forget for ExplicitRubberBandBoundary
impl Freeze for ExplicitRubberBandBoundary
impl Move for ExplicitRubberBandBoundary
impl RefUnwindSafe for ExplicitRubberBandBoundary
impl Send for ExplicitRubberBandBoundary
impl Sync for ExplicitRubberBandBoundary
impl Unpin for ExplicitRubberBandBoundary
impl UnsafeUnpin for ExplicitRubberBandBoundary
impl UnwindSafe for ExplicitRubberBandBoundary
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