pub enum FontWeight {
Show 20 variants
Thin,
ExtraLight,
Light,
Normal,
Medium,
SemiBold,
Bold,
ExtraBold,
Black,
Lighter,
Bolder,
Weight100,
Weight200,
Weight300,
Weight400,
Weight500,
Weight600,
Weight700,
Weight800,
Weight900,
}Expand description
Re-export all transformer model types for convenience.
This includes types like Element, Attribute, and other core data structures
used in the template system.
Font weight (thickness) values.
Supports both named weights and numeric weights from 100-900.
Variants§
Thin
Thin weight (typically 100).
ExtraLight
Extra light weight (typically 200).
Light
Light weight (typically 300).
Normal
Normal/regular weight (typically 400). This is the default.
Medium
Medium weight (typically 500).
SemiBold
Semi-bold weight (typically 600).
Bold
Bold weight (typically 700).
ExtraBold
Extra bold weight (typically 800).
Black
Black/heavy weight (typically 900).
Lighter
Lighter than parent element.
Bolder
Bolder than parent element.
Weight100
Numeric weight 100.
Weight200
Numeric weight 200.
Weight300
Numeric weight 300.
Weight400
Numeric weight 400.
Weight500
Numeric weight 500.
Weight600
Numeric weight 600.
Weight700
Numeric weight 700.
Weight800
Numeric weight 800.
Weight900
Numeric weight 900.
Trait Implementations§
Source§impl Clone for FontWeight
impl Clone for FontWeight
Source§fn clone(&self) -> FontWeight
fn clone(&self) -> FontWeight
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FontWeight
impl Debug for FontWeight
Source§impl Default for FontWeight
impl Default for FontWeight
Source§fn default() -> FontWeight
fn default() -> FontWeight
Source§impl<'de> Deserialize<'de> for FontWeight
impl<'de> Deserialize<'de> for FontWeight
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontWeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontWeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for FontWeight
impl Display for FontWeight
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
Source§fn eq(&self, other: &FontWeight) -> bool
fn eq(&self, other: &FontWeight) -> bool
self and other values to be equal, and is used by ==.