pub struct ScrollMarginTopStyleValue(pub Length);Expand description
Represents the style value for scroll-margin-top 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 ScrollMarginTopStyleValue
impl Clone for ScrollMarginTopStyleValue
Source§fn clone(&self) -> ScrollMarginTopStyleValue
fn clone(&self) -> ScrollMarginTopStyleValue
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 ScrollMarginTopStyleValue
impl Debug for ScrollMarginTopStyleValue
Source§impl Hash for ScrollMarginTopStyleValue
impl Hash for ScrollMarginTopStyleValue
Source§impl Ord for ScrollMarginTopStyleValue
impl Ord for ScrollMarginTopStyleValue
Source§fn cmp(&self, other: &ScrollMarginTopStyleValue) -> Ordering
fn cmp(&self, other: &ScrollMarginTopStyleValue) -> 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 ScrollMarginTopStyleValue
impl<'a> Parse<'a> for ScrollMarginTopStyleValue
Source§impl PartialOrd for ScrollMarginTopStyleValue
impl PartialOrd for ScrollMarginTopStyleValue
Source§impl<'a> Peek<'a> for ScrollMarginTopStyleValue
impl<'a> Peek<'a> for ScrollMarginTopStyleValue
Source§impl ToCursors for ScrollMarginTopStyleValue
impl ToCursors for ScrollMarginTopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollMarginTopStyleValue
impl StructuralPartialEq for ScrollMarginTopStyleValue
Auto Trait Implementations§
impl Freeze for ScrollMarginTopStyleValue
impl RefUnwindSafe for ScrollMarginTopStyleValue
impl Send for ScrollMarginTopStyleValue
impl Sync for ScrollMarginTopStyleValue
impl Unpin for ScrollMarginTopStyleValue
impl UnwindSafe for ScrollMarginTopStyleValue
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