pub struct ScrollPaddingInlineStyleValue(pub AutoOr<LengthPercentage>, pub Option<AutoOr<LengthPercentage>>);Expand description
Represents the style value for scroll-padding-inline 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:
[ auto | <length-percentage [0,∞]> ]{1,2}Tuple Fields§
§0: AutoOr<LengthPercentage>§1: Option<AutoOr<LengthPercentage>>Trait Implementations§
Source§impl Clone for ScrollPaddingInlineStyleValue
impl Clone for ScrollPaddingInlineStyleValue
Source§fn clone(&self) -> ScrollPaddingInlineStyleValue
fn clone(&self) -> ScrollPaddingInlineStyleValue
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 Hash for ScrollPaddingInlineStyleValue
impl Hash for ScrollPaddingInlineStyleValue
Source§impl Ord for ScrollPaddingInlineStyleValue
impl Ord for ScrollPaddingInlineStyleValue
Source§fn cmp(&self, other: &ScrollPaddingInlineStyleValue) -> Ordering
fn cmp(&self, other: &ScrollPaddingInlineStyleValue) -> 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 ScrollPaddingInlineStyleValue
impl<'a> Parse<'a> for ScrollPaddingInlineStyleValue
Source§impl PartialEq for ScrollPaddingInlineStyleValue
impl PartialEq for ScrollPaddingInlineStyleValue
Source§fn eq(&self, other: &ScrollPaddingInlineStyleValue) -> bool
fn eq(&self, other: &ScrollPaddingInlineStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScrollPaddingInlineStyleValue
impl PartialOrd for ScrollPaddingInlineStyleValue
Source§impl<'a> Peek<'a> for ScrollPaddingInlineStyleValue
impl<'a> Peek<'a> for ScrollPaddingInlineStyleValue
Source§impl ToCursors for ScrollPaddingInlineStyleValue
impl ToCursors for ScrollPaddingInlineStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollPaddingInlineStyleValue
impl StructuralPartialEq for ScrollPaddingInlineStyleValue
Auto Trait Implementations§
impl Freeze for ScrollPaddingInlineStyleValue
impl RefUnwindSafe for ScrollPaddingInlineStyleValue
impl Send for ScrollPaddingInlineStyleValue
impl Sync for ScrollPaddingInlineStyleValue
impl Unpin for ScrollPaddingInlineStyleValue
impl UnwindSafe for ScrollPaddingInlineStyleValue
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