#[non_exhaustive]pub enum ScrollPadding {
Auto,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of scroll-padding.
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 ScrollPadding
impl Clone for ScrollPadding
Source§fn clone(&self) -> ScrollPadding
fn clone(&self) -> ScrollPadding
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 ScrollPadding
impl Debug for ScrollPadding
Source§impl Display for ScrollPadding
impl Display for ScrollPadding
Source§impl From<Length> for ScrollPadding
impl From<Length> for ScrollPadding
Source§impl From<Percentage> for ScrollPadding
impl From<Percentage> for ScrollPadding
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for ScrollPadding
impl From<Raw> for ScrollPadding
Source§impl PartialEq for ScrollPadding
impl PartialEq for ScrollPadding
impl StructuralPartialEq for ScrollPadding
Auto Trait Implementations§
impl Freeze for ScrollPadding
impl RefUnwindSafe for ScrollPadding
impl Send for ScrollPadding
impl Sync for ScrollPadding
impl Unpin for ScrollPadding
impl UnsafeUnpin for ScrollPadding
impl UnwindSafe for ScrollPadding
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