pub enum MaxWidthStyleValue {
None(Ident),
LengthPercentage(LengthPercentage),
MinContent(Ident),
MaxContent(Ident),
FitContentFunction(FitContentFunction),
CalcSizeFunction(CalcSizeFunction),
Stretch(Ident),
FitContent(Ident),
Contain(Ident),
}Expand description
Represents the style value for max-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:
none | <length-percentage [0,∞]> | min-content | max-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | stretch | fit-content | containVariants§
None(Ident)
LengthPercentage(LengthPercentage)
MinContent(Ident)
MaxContent(Ident)
FitContentFunction(FitContentFunction)
CalcSizeFunction(CalcSizeFunction)
Stretch(Ident)
FitContent(Ident)
Contain(Ident)
Trait Implementations§
Source§impl Clone for MaxWidthStyleValue
impl Clone for MaxWidthStyleValue
Source§fn clone(&self) -> MaxWidthStyleValue
fn clone(&self) -> MaxWidthStyleValue
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 MaxWidthStyleValue
impl Debug for MaxWidthStyleValue
Source§impl Hash for MaxWidthStyleValue
impl Hash for MaxWidthStyleValue
Source§impl Ord for MaxWidthStyleValue
impl Ord for MaxWidthStyleValue
Source§fn cmp(&self, other: &MaxWidthStyleValue) -> Ordering
fn cmp(&self, other: &MaxWidthStyleValue) -> 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 MaxWidthStyleValue
impl<'a> Parse<'a> for MaxWidthStyleValue
Source§impl PartialEq for MaxWidthStyleValue
impl PartialEq for MaxWidthStyleValue
Source§impl PartialOrd for MaxWidthStyleValue
impl PartialOrd for MaxWidthStyleValue
Source§impl<'a> Peek<'a> for MaxWidthStyleValue
impl<'a> Peek<'a> for MaxWidthStyleValue
Source§impl ToCursors for MaxWidthStyleValue
impl ToCursors for MaxWidthStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MaxWidthStyleValue
impl StructuralPartialEq for MaxWidthStyleValue
Auto Trait Implementations§
impl Freeze for MaxWidthStyleValue
impl RefUnwindSafe for MaxWidthStyleValue
impl Send for MaxWidthStyleValue
impl Sync for MaxWidthStyleValue
impl Unpin for MaxWidthStyleValue
impl UnwindSafe for MaxWidthStyleValue
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