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