pub enum HeightStyleValue {
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 height as defined in css-sizing-4.
The width and height CSS properties set the preferred physical 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 HeightStyleValue
impl Clone for HeightStyleValue
Source§fn clone(&self) -> HeightStyleValue
fn clone(&self) -> HeightStyleValue
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 HeightStyleValue
impl Debug for HeightStyleValue
Source§impl Hash for HeightStyleValue
impl Hash for HeightStyleValue
Source§impl Ord for HeightStyleValue
impl Ord for HeightStyleValue
Source§fn cmp(&self, other: &HeightStyleValue) -> Ordering
fn cmp(&self, other: &HeightStyleValue) -> 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 HeightStyleValue
impl<'a> Parse<'a> for HeightStyleValue
Source§impl PartialEq for HeightStyleValue
impl PartialEq for HeightStyleValue
Source§impl PartialOrd for HeightStyleValue
impl PartialOrd for HeightStyleValue
Source§impl<'a> Peek<'a> for HeightStyleValue
impl<'a> Peek<'a> for HeightStyleValue
Source§impl ToCursors for HeightStyleValue
impl ToCursors for HeightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for HeightStyleValue
impl StructuralPartialEq for HeightStyleValue
Auto Trait Implementations§
impl Freeze for HeightStyleValue
impl RefUnwindSafe for HeightStyleValue
impl Send for HeightStyleValue
impl Sync for HeightStyleValue
impl Unpin for HeightStyleValue
impl UnwindSafe for HeightStyleValue
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