pub enum MaxHeightStyleValue {
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-height 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 MaxHeightStyleValue
impl Clone for MaxHeightStyleValue
Source§fn clone(&self) -> MaxHeightStyleValue
fn clone(&self) -> MaxHeightStyleValue
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 MaxHeightStyleValue
impl Debug for MaxHeightStyleValue
Source§impl Hash for MaxHeightStyleValue
impl Hash for MaxHeightStyleValue
Source§impl Ord for MaxHeightStyleValue
impl Ord for MaxHeightStyleValue
Source§fn cmp(&self, other: &MaxHeightStyleValue) -> Ordering
fn cmp(&self, other: &MaxHeightStyleValue) -> 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 MaxHeightStyleValue
impl<'a> Parse<'a> for MaxHeightStyleValue
Source§impl PartialEq for MaxHeightStyleValue
impl PartialEq for MaxHeightStyleValue
Source§impl PartialOrd for MaxHeightStyleValue
impl PartialOrd for MaxHeightStyleValue
Source§impl<'a> Peek<'a> for MaxHeightStyleValue
impl<'a> Peek<'a> for MaxHeightStyleValue
Source§impl ToCursors for MaxHeightStyleValue
impl ToCursors for MaxHeightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MaxHeightStyleValue
impl StructuralPartialEq for MaxHeightStyleValue
Auto Trait Implementations§
impl Freeze for MaxHeightStyleValue
impl RefUnwindSafe for MaxHeightStyleValue
impl Send for MaxHeightStyleValue
impl Sync for MaxHeightStyleValue
impl Unpin for MaxHeightStyleValue
impl UnwindSafe for MaxHeightStyleValue
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