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