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