pub struct ScrollSnapAlignStyleValue(pub ScrollSnapAlignStyleValueKeywords, pub Option<ScrollSnapAlignStyleValueKeywords>);Expand description
Represents the style value for scroll-snap-align 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:
[ none | start | end | center ]{1,2}Tuple Fields§
§0: ScrollSnapAlignStyleValueKeywords§1: Option<ScrollSnapAlignStyleValueKeywords>Trait Implementations§
Source§impl Clone for ScrollSnapAlignStyleValue
impl Clone for ScrollSnapAlignStyleValue
Source§fn clone(&self) -> ScrollSnapAlignStyleValue
fn clone(&self) -> ScrollSnapAlignStyleValue
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 ScrollSnapAlignStyleValue
impl Debug for ScrollSnapAlignStyleValue
Source§impl Hash for ScrollSnapAlignStyleValue
impl Hash for ScrollSnapAlignStyleValue
Source§impl Ord for ScrollSnapAlignStyleValue
impl Ord for ScrollSnapAlignStyleValue
Source§fn cmp(&self, other: &ScrollSnapAlignStyleValue) -> Ordering
fn cmp(&self, other: &ScrollSnapAlignStyleValue) -> 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 ScrollSnapAlignStyleValue
impl<'a> Parse<'a> for ScrollSnapAlignStyleValue
Source§impl PartialOrd for ScrollSnapAlignStyleValue
impl PartialOrd for ScrollSnapAlignStyleValue
Source§impl<'a> Peek<'a> for ScrollSnapAlignStyleValue
impl<'a> Peek<'a> for ScrollSnapAlignStyleValue
Source§impl ToCursors for ScrollSnapAlignStyleValue
impl ToCursors for ScrollSnapAlignStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollSnapAlignStyleValue
impl StructuralPartialEq for ScrollSnapAlignStyleValue
Auto Trait Implementations§
impl Freeze for ScrollSnapAlignStyleValue
impl RefUnwindSafe for ScrollSnapAlignStyleValue
impl Send for ScrollSnapAlignStyleValue
impl Sync for ScrollSnapAlignStyleValue
impl Unpin for ScrollSnapAlignStyleValue
impl UnwindSafe for ScrollSnapAlignStyleValue
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