pub enum FontSizeStyleValue {
AbsoluteSize(AbsoluteSize),
RelativeSize(RelativeSize),
LengthPercentage(LengthPercentage),
Math(Ident),
}Expand description
Represents the style value for font-size as defined in css-fonts-5.
The font-size CSS property sets the text height.
The grammar is defined as:
<absolute-size> | <relative-size> | <length-percentage [0,∞]> | mathVariants§
AbsoluteSize(AbsoluteSize)
RelativeSize(RelativeSize)
LengthPercentage(LengthPercentage)
Math(Ident)
Trait Implementations§
Source§impl Clone for FontSizeStyleValue
impl Clone for FontSizeStyleValue
Source§fn clone(&self) -> FontSizeStyleValue
fn clone(&self) -> FontSizeStyleValue
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 FontSizeStyleValue
impl Debug for FontSizeStyleValue
Source§impl Hash for FontSizeStyleValue
impl Hash for FontSizeStyleValue
Source§impl Ord for FontSizeStyleValue
impl Ord for FontSizeStyleValue
Source§fn cmp(&self, other: &FontSizeStyleValue) -> Ordering
fn cmp(&self, other: &FontSizeStyleValue) -> 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 FontSizeStyleValue
impl<'a> Parse<'a> for FontSizeStyleValue
Source§impl PartialEq for FontSizeStyleValue
impl PartialEq for FontSizeStyleValue
Source§impl PartialOrd for FontSizeStyleValue
impl PartialOrd for FontSizeStyleValue
Source§impl<'a> Peek<'a> for FontSizeStyleValue
impl<'a> Peek<'a> for FontSizeStyleValue
Source§impl ToCursors for FontSizeStyleValue
impl ToCursors for FontSizeStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FontSizeStyleValue
impl StructuralPartialEq for FontSizeStyleValue
Auto Trait Implementations§
impl Freeze for FontSizeStyleValue
impl RefUnwindSafe for FontSizeStyleValue
impl Send for FontSizeStyleValue
impl Sync for FontSizeStyleValue
impl Unpin for FontSizeStyleValue
impl UnwindSafe for FontSizeStyleValue
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