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