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