pub enum MinWidthStyleValue {
Auto(Ident),
LengthPercentage(LengthPercentage),
MinContent(Ident),
MaxContent(Ident),
FitContentFunction(FitContentFunction),
CalcSizeFunction(CalcSizeFunction),
Stretch(Ident),
FitContent(Ident),
Contain(Ident),
}Expand description
Represents the style value for min-width as defined in css-sizing-4.
The min-width, min-height, max-width, and max-height CSS properties set the minimum and maximum size of an element.
The grammar is defined as:
auto | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | containVariants§
Auto(Ident)
LengthPercentage(LengthPercentage)
MinContent(Ident)
MaxContent(Ident)
FitContentFunction(FitContentFunction)
CalcSizeFunction(CalcSizeFunction)
Stretch(Ident)
FitContent(Ident)
Contain(Ident)
Trait Implementations§
Source§impl Clone for MinWidthStyleValue
impl Clone for MinWidthStyleValue
Source§fn clone(&self) -> MinWidthStyleValue
fn clone(&self) -> MinWidthStyleValue
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 MinWidthStyleValue
impl Debug for MinWidthStyleValue
Source§impl Hash for MinWidthStyleValue
impl Hash for MinWidthStyleValue
Source§impl Ord for MinWidthStyleValue
impl Ord for MinWidthStyleValue
Source§fn cmp(&self, other: &MinWidthStyleValue) -> Ordering
fn cmp(&self, other: &MinWidthStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for MinWidthStyleValue
impl<'a> Parse<'a> for MinWidthStyleValue
Source§impl PartialEq for MinWidthStyleValue
impl PartialEq for MinWidthStyleValue
Source§impl PartialOrd for MinWidthStyleValue
impl PartialOrd for MinWidthStyleValue
Source§impl<'a> Peek<'a> for MinWidthStyleValue
impl<'a> Peek<'a> for MinWidthStyleValue
Source§impl ToCursors for MinWidthStyleValue
impl ToCursors for MinWidthStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MinWidthStyleValue
impl StructuralPartialEq for MinWidthStyleValue
Auto Trait Implementations§
impl Freeze for MinWidthStyleValue
impl RefUnwindSafe for MinWidthStyleValue
impl Send for MinWidthStyleValue
impl Sync for MinWidthStyleValue
impl Unpin for MinWidthStyleValue
impl UnwindSafe for MinWidthStyleValue
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