pub enum ScrollMarginValue {
Initial,
Inherit,
Revert,
RevertLayer,
Unset,
Length(Length),
}Variants§
Implementations§
Source§impl ScrollMarginValue
impl ScrollMarginValue
Sourcepub const fn is_initial(&self) -> bool
pub const fn is_initial(&self) -> bool
Returns true if the enum is ScrollMarginValue::Initial otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is ScrollMarginValue::Inherit otherwise false
Sourcepub const fn is_revert(&self) -> bool
pub const fn is_revert(&self) -> bool
Returns true if the enum is ScrollMarginValue::Revert otherwise false
Sourcepub const fn is_revert_layer(&self) -> bool
pub const fn is_revert_layer(&self) -> bool
Returns true if the enum is ScrollMarginValue::RevertLayer otherwise false
Trait Implementations§
Source§impl Clone for ScrollMarginValue
impl Clone for ScrollMarginValue
Source§fn clone(&self) -> ScrollMarginValue
fn clone(&self) -> ScrollMarginValue
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 ScrollMarginValue
impl Debug for ScrollMarginValue
Source§impl Display for ScrollMarginValue
impl Display for ScrollMarginValue
Source§impl PartialEq for ScrollMarginValue
impl PartialEq for ScrollMarginValue
impl StructuralPartialEq for ScrollMarginValue
impl UnitDataType<ScrollMargin<ScrollMarginValue>> for ScrollMarginValue
Auto Trait Implementations§
impl Freeze for ScrollMarginValue
impl RefUnwindSafe for ScrollMarginValue
impl Send for ScrollMarginValue
impl Sync for ScrollMarginValue
impl Unpin for ScrollMarginValue
impl UnwindSafe for ScrollMarginValue
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