pub enum FontOpticalSizingStyleValue {
Auto(Ident),
None(Ident),
}Expand description
Represents the style value for font-optical-sizing as defined in css-fonts-5.
The font-optical-sizing CSS property sets whether text rendering is optimized for viewing at different sizes.
The grammar is defined as:
auto | noneVariants§
Trait Implementations§
Source§impl Clone for FontOpticalSizingStyleValue
impl Clone for FontOpticalSizingStyleValue
Source§fn clone(&self) -> FontOpticalSizingStyleValue
fn clone(&self) -> FontOpticalSizingStyleValue
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 FontOpticalSizingStyleValue
impl Debug for FontOpticalSizingStyleValue
Source§impl Hash for FontOpticalSizingStyleValue
impl Hash for FontOpticalSizingStyleValue
Source§impl Ord for FontOpticalSizingStyleValue
impl Ord for FontOpticalSizingStyleValue
Source§fn cmp(&self, other: &FontOpticalSizingStyleValue) -> Ordering
fn cmp(&self, other: &FontOpticalSizingStyleValue) -> 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 FontOpticalSizingStyleValue
impl<'a> Parse<'a> for FontOpticalSizingStyleValue
Source§impl PartialOrd for FontOpticalSizingStyleValue
impl PartialOrd for FontOpticalSizingStyleValue
Source§impl<'a> Peek<'a> for FontOpticalSizingStyleValue
impl<'a> Peek<'a> for FontOpticalSizingStyleValue
Source§impl ToCursors for FontOpticalSizingStyleValue
impl ToCursors for FontOpticalSizingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontOpticalSizingStyleValue
impl StructuralPartialEq for FontOpticalSizingStyleValue
Auto Trait Implementations§
impl Freeze for FontOpticalSizingStyleValue
impl RefUnwindSafe for FontOpticalSizingStyleValue
impl Send for FontOpticalSizingStyleValue
impl Sync for FontOpticalSizingStyleValue
impl Unpin for FontOpticalSizingStyleValue
impl UnwindSafe for FontOpticalSizingStyleValue
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