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