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