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