pub struct ScrollPaddingStyleValue(pub AutoOr<LengthPercentage>, pub Option<AutoOr<LengthPercentage>>, pub Option<AutoOr<LengthPercentage>>, pub Option<AutoOr<LengthPercentage>>);Expand description
Represents the style value for scroll-padding 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,4}Tuple Fields§
§0: AutoOr<LengthPercentage>§1: Option<AutoOr<LengthPercentage>>§2: Option<AutoOr<LengthPercentage>>§3: Option<AutoOr<LengthPercentage>>Trait Implementations§
Source§impl Clone for ScrollPaddingStyleValue
impl Clone for ScrollPaddingStyleValue
Source§fn clone(&self) -> ScrollPaddingStyleValue
fn clone(&self) -> ScrollPaddingStyleValue
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 ScrollPaddingStyleValue
impl Debug for ScrollPaddingStyleValue
Source§impl Hash for ScrollPaddingStyleValue
impl Hash for ScrollPaddingStyleValue
Source§impl Ord for ScrollPaddingStyleValue
impl Ord for ScrollPaddingStyleValue
Source§fn cmp(&self, other: &ScrollPaddingStyleValue) -> Ordering
fn cmp(&self, other: &ScrollPaddingStyleValue) -> 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 ScrollPaddingStyleValue
impl<'a> Parse<'a> for ScrollPaddingStyleValue
Source§impl PartialEq for ScrollPaddingStyleValue
impl PartialEq for ScrollPaddingStyleValue
Source§impl PartialOrd for ScrollPaddingStyleValue
impl PartialOrd for ScrollPaddingStyleValue
Source§impl<'a> Peek<'a> for ScrollPaddingStyleValue
impl<'a> Peek<'a> for ScrollPaddingStyleValue
Source§impl ToCursors for ScrollPaddingStyleValue
impl ToCursors for ScrollPaddingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollPaddingStyleValue
impl StructuralPartialEq for ScrollPaddingStyleValue
Auto Trait Implementations§
impl Freeze for ScrollPaddingStyleValue
impl RefUnwindSafe for ScrollPaddingStyleValue
impl Send for ScrollPaddingStyleValue
impl Sync for ScrollPaddingStyleValue
impl Unpin for ScrollPaddingStyleValue
impl UnwindSafe for ScrollPaddingStyleValue
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