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