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