#[repr(C)]pub enum OverscrollBehavior {
Auto = 0,
Contain = 1,
None = 2,
}Expand description
CSS overscroll-behavior property - controls overscroll effects
https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior
Variants§
Auto = 0
Default scroll overflow behavior (bounce/glow effects, scroll chaining)
Contain = 1
Prevents scroll chaining to parent elements, but allows local overscroll effects
None = 2
No scroll chaining and no overscroll effects (hard stop at boundaries)
Trait Implementations§
Source§impl Clone for OverscrollBehavior
impl Clone for OverscrollBehavior
Source§fn clone(&self) -> OverscrollBehavior
fn clone(&self) -> OverscrollBehavior
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 OverscrollBehavior
impl Debug for OverscrollBehavior
Source§impl Default for OverscrollBehavior
impl Default for OverscrollBehavior
Source§fn default() -> OverscrollBehavior
fn default() -> OverscrollBehavior
Returns the “default value” for a type. Read more
Source§impl Hash for OverscrollBehavior
impl Hash for OverscrollBehavior
Source§impl Ord for OverscrollBehavior
impl Ord for OverscrollBehavior
Source§fn cmp(&self, other: &OverscrollBehavior) -> Ordering
fn cmp(&self, other: &OverscrollBehavior) -> 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 OverscrollBehavior
impl PartialEq for OverscrollBehavior
Source§impl PartialOrd for OverscrollBehavior
impl PartialOrd for OverscrollBehavior
Source§impl PrintAsCssValue for OverscrollBehavior
impl PrintAsCssValue for OverscrollBehavior
fn print_as_css_value(&self) -> String
impl Copy for OverscrollBehavior
impl Eq for OverscrollBehavior
impl StructuralPartialEq for OverscrollBehavior
Auto Trait Implementations§
impl Freeze for OverscrollBehavior
impl RefUnwindSafe for OverscrollBehavior
impl Send for OverscrollBehavior
impl Sync for OverscrollBehavior
impl Unpin for OverscrollBehavior
impl UnwindSafe for OverscrollBehavior
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