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