pub struct ScrollMarginInlineStyleValue(pub Length, pub Option<Length>);Expand description
Represents the style value for scroll-margin-inline 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:
<length>{1,2}Tuple Fields§
§0: Length§1: Option<Length>Trait Implementations§
Source§impl Clone for ScrollMarginInlineStyleValue
impl Clone for ScrollMarginInlineStyleValue
Source§fn clone(&self) -> ScrollMarginInlineStyleValue
fn clone(&self) -> ScrollMarginInlineStyleValue
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 ScrollMarginInlineStyleValue
impl Debug for ScrollMarginInlineStyleValue
Source§impl Hash for ScrollMarginInlineStyleValue
impl Hash for ScrollMarginInlineStyleValue
Source§impl Ord for ScrollMarginInlineStyleValue
impl Ord for ScrollMarginInlineStyleValue
Source§fn cmp(&self, other: &ScrollMarginInlineStyleValue) -> Ordering
fn cmp(&self, other: &ScrollMarginInlineStyleValue) -> 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 ScrollMarginInlineStyleValue
impl<'a> Parse<'a> for ScrollMarginInlineStyleValue
Source§impl PartialEq for ScrollMarginInlineStyleValue
impl PartialEq for ScrollMarginInlineStyleValue
Source§fn eq(&self, other: &ScrollMarginInlineStyleValue) -> bool
fn eq(&self, other: &ScrollMarginInlineStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScrollMarginInlineStyleValue
impl PartialOrd for ScrollMarginInlineStyleValue
Source§impl<'a> Peek<'a> for ScrollMarginInlineStyleValue
impl<'a> Peek<'a> for ScrollMarginInlineStyleValue
Source§impl ToCursors for ScrollMarginInlineStyleValue
impl ToCursors for ScrollMarginInlineStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollMarginInlineStyleValue
impl StructuralPartialEq for ScrollMarginInlineStyleValue
Auto Trait Implementations§
impl Freeze for ScrollMarginInlineStyleValue
impl RefUnwindSafe for ScrollMarginInlineStyleValue
impl Send for ScrollMarginInlineStyleValue
impl Sync for ScrollMarginInlineStyleValue
impl Unpin for ScrollMarginInlineStyleValue
impl UnwindSafe for ScrollMarginInlineStyleValue
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