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