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