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