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