pub enum FontWeightStyleValue {
FontWeightAbsolute(FontWeightAbsolute),
Bolder(Ident),
Lighter(Ident),
}Expand description
Represents the style value for font-weight as defined in css-fonts-5.
The font-weight CSS property controls the thickness of a font. It is set explicitly with the keyword bold or a number, or relative to the inherited thickness with the keywords bolder or lighter.
The grammar is defined as:
<font-weight-absolute> | bolder | lighterVariants§
Trait Implementations§
Source§impl Clone for FontWeightStyleValue
impl Clone for FontWeightStyleValue
Source§fn clone(&self) -> FontWeightStyleValue
fn clone(&self) -> FontWeightStyleValue
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 FontWeightStyleValue
impl Debug for FontWeightStyleValue
Source§impl Hash for FontWeightStyleValue
impl Hash for FontWeightStyleValue
Source§impl Ord for FontWeightStyleValue
impl Ord for FontWeightStyleValue
Source§fn cmp(&self, other: &FontWeightStyleValue) -> Ordering
fn cmp(&self, other: &FontWeightStyleValue) -> 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 FontWeightStyleValue
impl<'a> Parse<'a> for FontWeightStyleValue
Source§impl PartialEq for FontWeightStyleValue
impl PartialEq for FontWeightStyleValue
Source§impl PartialOrd for FontWeightStyleValue
impl PartialOrd for FontWeightStyleValue
Source§impl<'a> Peek<'a> for FontWeightStyleValue
impl<'a> Peek<'a> for FontWeightStyleValue
Source§impl ToCursors for FontWeightStyleValue
impl ToCursors for FontWeightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontWeightStyleValue
impl StructuralPartialEq for FontWeightStyleValue
Auto Trait Implementations§
impl Freeze for FontWeightStyleValue
impl RefUnwindSafe for FontWeightStyleValue
impl Send for FontWeightStyleValue
impl Sync for FontWeightStyleValue
impl Unpin for FontWeightStyleValue
impl UnwindSafe for FontWeightStyleValue
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