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