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