pub enum ScrollSnapStopStyleValue {
Normal(Ident),
Always(Ident),
}Expand description
Represents the style value for scroll-snap-stop as defined in css-scroll-snap-2.
CSS scroll snap controls the panning and scrolling behavior within a scroll container.
The grammar is defined as:
normal | alwaysVariants§
Trait Implementations§
Source§impl Clone for ScrollSnapStopStyleValue
impl Clone for ScrollSnapStopStyleValue
Source§fn clone(&self) -> ScrollSnapStopStyleValue
fn clone(&self) -> ScrollSnapStopStyleValue
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 ScrollSnapStopStyleValue
impl Debug for ScrollSnapStopStyleValue
Source§impl Hash for ScrollSnapStopStyleValue
impl Hash for ScrollSnapStopStyleValue
Source§impl Ord for ScrollSnapStopStyleValue
impl Ord for ScrollSnapStopStyleValue
Source§fn cmp(&self, other: &ScrollSnapStopStyleValue) -> Ordering
fn cmp(&self, other: &ScrollSnapStopStyleValue) -> 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 ScrollSnapStopStyleValue
impl<'a> Parse<'a> for ScrollSnapStopStyleValue
Source§impl PartialEq for ScrollSnapStopStyleValue
impl PartialEq for ScrollSnapStopStyleValue
Source§impl PartialOrd for ScrollSnapStopStyleValue
impl PartialOrd for ScrollSnapStopStyleValue
Source§impl<'a> Peek<'a> for ScrollSnapStopStyleValue
impl<'a> Peek<'a> for ScrollSnapStopStyleValue
Source§impl ToCursors for ScrollSnapStopStyleValue
impl ToCursors for ScrollSnapStopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollSnapStopStyleValue
impl StructuralPartialEq for ScrollSnapStopStyleValue
Auto Trait Implementations§
impl Freeze for ScrollSnapStopStyleValue
impl RefUnwindSafe for ScrollSnapStopStyleValue
impl Send for ScrollSnapStopStyleValue
impl Sync for ScrollSnapStopStyleValue
impl Unpin for ScrollSnapStopStyleValue
impl UnwindSafe for ScrollSnapStopStyleValue
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