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