pub enum CssFontSize {
XxSmall,
XSmall,
Small,
Medium,
Large,
XLarge,
XxLarge,
}Expand description
Includes the CSS font sizes used as an alternative to a numeric point size.
In CSS, these refer to an entry in a table of font sizes computed and kept by the user agent. The scaling is relative to the reference value of Medium.
Variants§
XxSmall
Scaling factor guideline: 3/5 of Medium.
XSmall
Scaling factor guideline: 3/4 of Medium.
Small
Scaling factor guideline: 8/9 of Medium.
Medium
Scaling factor guideline: equal to Medium.
Large
Scaling factor guideline: 6/5 of Medium.
XLarge
Scaling factor guideline: 3/2 of Medium.
XxLarge
Scaling factor guideline: 2/1 of Medium.
Trait Implementations§
Source§impl DatatypeDeserializer for CssFontSize
impl DatatypeDeserializer for CssFontSize
fn deserialize(value: &str) -> Result<CssFontSize, String>
Source§impl DatatypeSerializer for CssFontSize
impl DatatypeSerializer for CssFontSize
fn serialize(element: &CssFontSize) -> String
Source§impl Debug for CssFontSize
impl Debug for CssFontSize
Source§impl PartialEq for CssFontSize
impl PartialEq for CssFontSize
impl Eq for CssFontSize
impl StructuralPartialEq for CssFontSize
Auto Trait Implementations§
impl Freeze for CssFontSize
impl RefUnwindSafe for CssFontSize
impl Send for CssFontSize
impl Sync for CssFontSize
impl Unpin for CssFontSize
impl UnwindSafe for CssFontSize
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