pub struct OverscrollBehaviorStyleValue(pub OverscrollBehaviorStyleValueKeywords, pub Option<OverscrollBehaviorStyleValueKeywords>);Expand description
Represents the style value for overscroll-behavior as defined in css-overscroll-1.
The overscroll-behavior CSS property disables default scrolling behaviors when the edges of a scrolling area are reached.
The grammar is defined as:
[ contain | none | auto ]{1,2}Tuple Fields§
§0: OverscrollBehaviorStyleValueKeywords§1: Option<OverscrollBehaviorStyleValueKeywords>Trait Implementations§
Source§impl Clone for OverscrollBehaviorStyleValue
impl Clone for OverscrollBehaviorStyleValue
Source§fn clone(&self) -> OverscrollBehaviorStyleValue
fn clone(&self) -> OverscrollBehaviorStyleValue
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 OverscrollBehaviorStyleValue
impl Debug for OverscrollBehaviorStyleValue
Source§impl Hash for OverscrollBehaviorStyleValue
impl Hash for OverscrollBehaviorStyleValue
Source§impl Ord for OverscrollBehaviorStyleValue
impl Ord for OverscrollBehaviorStyleValue
Source§fn cmp(&self, other: &OverscrollBehaviorStyleValue) -> Ordering
fn cmp(&self, other: &OverscrollBehaviorStyleValue) -> 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<'a> Parse<'a> for OverscrollBehaviorStyleValue
impl<'a> Parse<'a> for OverscrollBehaviorStyleValue
Source§impl PartialEq for OverscrollBehaviorStyleValue
impl PartialEq for OverscrollBehaviorStyleValue
Source§fn eq(&self, other: &OverscrollBehaviorStyleValue) -> bool
fn eq(&self, other: &OverscrollBehaviorStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OverscrollBehaviorStyleValue
impl PartialOrd for OverscrollBehaviorStyleValue
Source§impl<'a> Peek<'a> for OverscrollBehaviorStyleValue
impl<'a> Peek<'a> for OverscrollBehaviorStyleValue
Source§impl ToCursors for OverscrollBehaviorStyleValue
impl ToCursors for OverscrollBehaviorStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for OverscrollBehaviorStyleValue
impl StructuralPartialEq for OverscrollBehaviorStyleValue
Auto Trait Implementations§
impl Freeze for OverscrollBehaviorStyleValue
impl RefUnwindSafe for OverscrollBehaviorStyleValue
impl Send for OverscrollBehaviorStyleValue
impl Sync for OverscrollBehaviorStyleValue
impl Unpin for OverscrollBehaviorStyleValue
impl UnwindSafe for OverscrollBehaviorStyleValue
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