pub enum FontSynthesisWeightStyleValue {
Auto(Ident),
None(Ident),
}Expand description
Represents the style value for font-synthesis-weight as defined in css-fonts-5.
The font-synthesis-weight CSS property sets whether or not the browser should synthesize bold typefaces when they’re missing from the font.
The grammar is defined as:
auto | noneVariants§
Trait Implementations§
Source§impl Clone for FontSynthesisWeightStyleValue
impl Clone for FontSynthesisWeightStyleValue
Source§fn clone(&self) -> FontSynthesisWeightStyleValue
fn clone(&self) -> FontSynthesisWeightStyleValue
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 Hash for FontSynthesisWeightStyleValue
impl Hash for FontSynthesisWeightStyleValue
Source§impl Ord for FontSynthesisWeightStyleValue
impl Ord for FontSynthesisWeightStyleValue
Source§fn cmp(&self, other: &FontSynthesisWeightStyleValue) -> Ordering
fn cmp(&self, other: &FontSynthesisWeightStyleValue) -> 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 FontSynthesisWeightStyleValue
impl<'a> Parse<'a> for FontSynthesisWeightStyleValue
Source§impl PartialEq for FontSynthesisWeightStyleValue
impl PartialEq for FontSynthesisWeightStyleValue
Source§fn eq(&self, other: &FontSynthesisWeightStyleValue) -> bool
fn eq(&self, other: &FontSynthesisWeightStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FontSynthesisWeightStyleValue
impl PartialOrd for FontSynthesisWeightStyleValue
Source§impl<'a> Peek<'a> for FontSynthesisWeightStyleValue
impl<'a> Peek<'a> for FontSynthesisWeightStyleValue
Source§impl ToCursors for FontSynthesisWeightStyleValue
impl ToCursors for FontSynthesisWeightStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontSynthesisWeightStyleValue
impl StructuralPartialEq for FontSynthesisWeightStyleValue
Auto Trait Implementations§
impl Freeze for FontSynthesisWeightStyleValue
impl RefUnwindSafe for FontSynthesisWeightStyleValue
impl Send for FontSynthesisWeightStyleValue
impl Sync for FontSynthesisWeightStyleValue
impl Unpin for FontSynthesisWeightStyleValue
impl UnwindSafe for FontSynthesisWeightStyleValue
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