#[repr(C)]pub enum OverflowScrolling {
Auto = 0,
Touch = 1,
}Expand description
Controls per-node rubber-banding / momentum scrolling behavior.
Analogous to -webkit-overflow-scrolling on iOS Safari.
Auto: Use the globalScrollPhysicsfromSystemStyle. On platforms withoverscroll_elasticity == 0.0(e.g. Windows), this means no rubber-banding.Touch: Force momentum scrolling with rubber-banding on this node, regardless of the globalScrollPhysicssetting. Uses iOS-like elasticity if the global elasticity is zero.
Variants§
Auto = 0
Use the global scroll physics (platform default). No rubber-banding on Windows.
Touch = 1
Force rubber-banding / momentum scrolling on this node (like iOS/macOS).
Trait Implementations§
Source§impl Clone for OverflowScrolling
impl Clone for OverflowScrolling
Source§fn clone(&self) -> OverflowScrolling
fn clone(&self) -> OverflowScrolling
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 OverflowScrolling
impl Debug for OverflowScrolling
Source§impl Default for OverflowScrolling
impl Default for OverflowScrolling
Source§fn default() -> OverflowScrolling
fn default() -> OverflowScrolling
Returns the “default value” for a type. Read more
Source§impl Hash for OverflowScrolling
impl Hash for OverflowScrolling
Source§impl Ord for OverflowScrolling
impl Ord for OverflowScrolling
Source§fn cmp(&self, other: &OverflowScrolling) -> Ordering
fn cmp(&self, other: &OverflowScrolling) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OverflowScrolling
impl PartialEq for OverflowScrolling
Source§impl PartialOrd for OverflowScrolling
impl PartialOrd for OverflowScrolling
Source§impl PrintAsCssValue for OverflowScrolling
impl PrintAsCssValue for OverflowScrolling
fn print_as_css_value(&self) -> String
impl Copy for OverflowScrolling
impl Eq for OverflowScrolling
impl StructuralPartialEq for OverflowScrolling
Auto Trait Implementations§
impl Freeze for OverflowScrolling
impl RefUnwindSafe for OverflowScrolling
impl Send for OverflowScrolling
impl Sync for OverflowScrolling
impl Unpin for OverflowScrolling
impl UnsafeUnpin for OverflowScrolling
impl UnwindSafe for OverflowScrolling
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