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