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