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