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