#[non_exhaustive]pub enum ScrollPaddingInline {
Auto,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of scroll-padding-inline.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
auto.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for ScrollPaddingInline
impl Clone for ScrollPaddingInline
Source§fn clone(&self) -> ScrollPaddingInline
fn clone(&self) -> ScrollPaddingInline
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScrollPaddingInline
impl Debug for ScrollPaddingInline
Source§impl Display for ScrollPaddingInline
impl Display for ScrollPaddingInline
Source§impl From<Length> for ScrollPaddingInline
impl From<Length> for ScrollPaddingInline
Source§impl From<Percentage> for ScrollPaddingInline
impl From<Percentage> for ScrollPaddingInline
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for ScrollPaddingInline
impl From<Raw> for ScrollPaddingInline
Source§impl PartialEq for ScrollPaddingInline
impl PartialEq for ScrollPaddingInline
impl StructuralPartialEq for ScrollPaddingInline
Auto Trait Implementations§
impl Freeze for ScrollPaddingInline
impl RefUnwindSafe for ScrollPaddingInline
impl Send for ScrollPaddingInline
impl Sync for ScrollPaddingInline
impl Unpin for ScrollPaddingInline
impl UnsafeUnpin for ScrollPaddingInline
impl UnwindSafe for ScrollPaddingInline
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