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