pub enum FontWidthStyleValue {
Normal(Ident),
Percentage(Percentage),
UltraCondensed(Ident),
ExtraCondensed(Ident),
Condensed(Ident),
SemiCondensed(Ident),
SemiExpanded(Ident),
Expanded(Ident),
ExtraExpanded(Ident),
UltraExpanded(Ident),
}Expand description
Represents the style value for font-width as defined in css-fonts-5.
The font-width CSS property selects a font face from a font family based on width, either by a keyword such as condensed or a percentage.
The grammar is defined as:
normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expandedVariants§
Normal(Ident)
Percentage(Percentage)
UltraCondensed(Ident)
ExtraCondensed(Ident)
Condensed(Ident)
SemiCondensed(Ident)
SemiExpanded(Ident)
Expanded(Ident)
ExtraExpanded(Ident)
UltraExpanded(Ident)
Trait Implementations§
Source§impl Clone for FontWidthStyleValue
impl Clone for FontWidthStyleValue
Source§fn clone(&self) -> FontWidthStyleValue
fn clone(&self) -> FontWidthStyleValue
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 FontWidthStyleValue
impl Debug for FontWidthStyleValue
Source§impl Hash for FontWidthStyleValue
impl Hash for FontWidthStyleValue
Source§impl Ord for FontWidthStyleValue
impl Ord for FontWidthStyleValue
Source§fn cmp(&self, other: &FontWidthStyleValue) -> Ordering
fn cmp(&self, other: &FontWidthStyleValue) -> 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 FontWidthStyleValue
impl<'a> Parse<'a> for FontWidthStyleValue
Source§impl PartialEq for FontWidthStyleValue
impl PartialEq for FontWidthStyleValue
Source§impl PartialOrd for FontWidthStyleValue
impl PartialOrd for FontWidthStyleValue
Source§impl<'a> Peek<'a> for FontWidthStyleValue
impl<'a> Peek<'a> for FontWidthStyleValue
Source§impl ToCursors for FontWidthStyleValue
impl ToCursors for FontWidthStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontWidthStyleValue
impl StructuralPartialEq for FontWidthStyleValue
Auto Trait Implementations§
impl Freeze for FontWidthStyleValue
impl RefUnwindSafe for FontWidthStyleValue
impl Send for FontWidthStyleValue
impl Sync for FontWidthStyleValue
impl Unpin for FontWidthStyleValue
impl UnwindSafe for FontWidthStyleValue
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