pub enum ScrollBehaviorStyleValue {
Auto(Ident),
Smooth(Ident),
}Expand description
Represents the style value for scroll-behavior as defined in css-overflow-5.
The scroll-behavior CSS property controls whether scrolling is smooth or snaps, for scroll actions not performed by the user such as those triggered by navigation.
The grammar is defined as:
auto | smoothVariants§
Trait Implementations§
Source§impl Clone for ScrollBehaviorStyleValue
impl Clone for ScrollBehaviorStyleValue
Source§fn clone(&self) -> ScrollBehaviorStyleValue
fn clone(&self) -> ScrollBehaviorStyleValue
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 ScrollBehaviorStyleValue
impl Debug for ScrollBehaviorStyleValue
Source§impl Hash for ScrollBehaviorStyleValue
impl Hash for ScrollBehaviorStyleValue
Source§impl Ord for ScrollBehaviorStyleValue
impl Ord for ScrollBehaviorStyleValue
Source§fn cmp(&self, other: &ScrollBehaviorStyleValue) -> Ordering
fn cmp(&self, other: &ScrollBehaviorStyleValue) -> 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 ScrollBehaviorStyleValue
impl<'a> Parse<'a> for ScrollBehaviorStyleValue
Source§impl PartialEq for ScrollBehaviorStyleValue
impl PartialEq for ScrollBehaviorStyleValue
Source§impl PartialOrd for ScrollBehaviorStyleValue
impl PartialOrd for ScrollBehaviorStyleValue
Source§impl<'a> Peek<'a> for ScrollBehaviorStyleValue
impl<'a> Peek<'a> for ScrollBehaviorStyleValue
Source§impl ToCursors for ScrollBehaviorStyleValue
impl ToCursors for ScrollBehaviorStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollBehaviorStyleValue
impl StructuralPartialEq for ScrollBehaviorStyleValue
Auto Trait Implementations§
impl Freeze for ScrollBehaviorStyleValue
impl RefUnwindSafe for ScrollBehaviorStyleValue
impl Send for ScrollBehaviorStyleValue
impl Sync for ScrollBehaviorStyleValue
impl Unpin for ScrollBehaviorStyleValue
impl UnwindSafe for ScrollBehaviorStyleValue
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