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