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