pub enum FontVariantPositionStyleValue {
Normal(Ident),
Sub(Ident),
Super(Ident),
}Expand description
Represents the style value for font-variant-position as defined in css-fonts-5.
The font-variant-position CSS property sets whether to use alternate glyphs for subscript and superscript text.
The grammar is defined as:
normal | sub | superVariants§
Trait Implementations§
Source§impl Clone for FontVariantPositionStyleValue
impl Clone for FontVariantPositionStyleValue
Source§fn clone(&self) -> FontVariantPositionStyleValue
fn clone(&self) -> FontVariantPositionStyleValue
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 FontVariantPositionStyleValue
impl Hash for FontVariantPositionStyleValue
Source§impl Ord for FontVariantPositionStyleValue
impl Ord for FontVariantPositionStyleValue
Source§fn cmp(&self, other: &FontVariantPositionStyleValue) -> Ordering
fn cmp(&self, other: &FontVariantPositionStyleValue) -> 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 FontVariantPositionStyleValue
impl<'a> Parse<'a> for FontVariantPositionStyleValue
Source§impl PartialEq for FontVariantPositionStyleValue
impl PartialEq for FontVariantPositionStyleValue
Source§fn eq(&self, other: &FontVariantPositionStyleValue) -> bool
fn eq(&self, other: &FontVariantPositionStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FontVariantPositionStyleValue
impl PartialOrd for FontVariantPositionStyleValue
Source§impl<'a> Peek<'a> for FontVariantPositionStyleValue
impl<'a> Peek<'a> for FontVariantPositionStyleValue
Source§impl ToCursors for FontVariantPositionStyleValue
impl ToCursors for FontVariantPositionStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontVariantPositionStyleValue
impl StructuralPartialEq for FontVariantPositionStyleValue
Auto Trait Implementations§
impl Freeze for FontVariantPositionStyleValue
impl RefUnwindSafe for FontVariantPositionStyleValue
impl Send for FontVariantPositionStyleValue
impl Sync for FontVariantPositionStyleValue
impl Unpin for FontVariantPositionStyleValue
impl UnwindSafe for FontVariantPositionStyleValue
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