#[non_exhaustive]pub enum ScrollMargin {
Length(Length),
Raw(Raw),
}Expand description
A value of scroll-margin.
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.
Trait Implementations§
Source§impl Clone for ScrollMargin
impl Clone for ScrollMargin
Source§fn clone(&self) -> ScrollMargin
fn clone(&self) -> ScrollMargin
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 ScrollMargin
impl Debug for ScrollMargin
Source§impl Display for ScrollMargin
impl Display for ScrollMargin
Source§impl From<Length> for ScrollMargin
impl From<Length> for ScrollMargin
Source§impl From<Raw> for ScrollMargin
impl From<Raw> for ScrollMargin
Source§impl PartialEq for ScrollMargin
impl PartialEq for ScrollMargin
impl StructuralPartialEq for ScrollMargin
Auto Trait Implementations§
impl Freeze for ScrollMargin
impl RefUnwindSafe for ScrollMargin
impl Send for ScrollMargin
impl Sync for ScrollMargin
impl Unpin for ScrollMargin
impl UnsafeUnpin for ScrollMargin
impl UnwindSafe for ScrollMargin
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