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