pub enum FontVariantCapsStyleValue {
Normal(Ident),
SmallCaps(Ident),
AllSmallCaps(Ident),
PetiteCaps(Ident),
AllPetiteCaps(Ident),
Unicase(Ident),
TitlingCaps(Ident),
}Expand description
Represents the style value for font-variant-caps as defined in css-fonts-5.
The font-variant-caps CSS property sets whether text should be displayed in small caps, petite caps, or with capital letters designed for titles.
The grammar is defined as:
normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-capsVariants§
Normal(Ident)
SmallCaps(Ident)
AllSmallCaps(Ident)
PetiteCaps(Ident)
AllPetiteCaps(Ident)
Unicase(Ident)
TitlingCaps(Ident)
Trait Implementations§
Source§impl Clone for FontVariantCapsStyleValue
impl Clone for FontVariantCapsStyleValue
Source§fn clone(&self) -> FontVariantCapsStyleValue
fn clone(&self) -> FontVariantCapsStyleValue
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 FontVariantCapsStyleValue
impl Debug for FontVariantCapsStyleValue
Source§impl Hash for FontVariantCapsStyleValue
impl Hash for FontVariantCapsStyleValue
Source§impl Ord for FontVariantCapsStyleValue
impl Ord for FontVariantCapsStyleValue
Source§fn cmp(&self, other: &FontVariantCapsStyleValue) -> Ordering
fn cmp(&self, other: &FontVariantCapsStyleValue) -> 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 FontVariantCapsStyleValue
impl<'a> Parse<'a> for FontVariantCapsStyleValue
Source§impl PartialOrd for FontVariantCapsStyleValue
impl PartialOrd for FontVariantCapsStyleValue
Source§impl<'a> Peek<'a> for FontVariantCapsStyleValue
impl<'a> Peek<'a> for FontVariantCapsStyleValue
Source§impl ToCursors for FontVariantCapsStyleValue
impl ToCursors for FontVariantCapsStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontVariantCapsStyleValue
impl StructuralPartialEq for FontVariantCapsStyleValue
Auto Trait Implementations§
impl Freeze for FontVariantCapsStyleValue
impl RefUnwindSafe for FontVariantCapsStyleValue
impl Send for FontVariantCapsStyleValue
impl Sync for FontVariantCapsStyleValue
impl Unpin for FontVariantCapsStyleValue
impl UnwindSafe for FontVariantCapsStyleValue
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