pub enum FontWeight {
Thin,
ExtraLight,
Light,
Normal,
Medium,
SemiBold,
Bold,
ExtraBold,
Black,
}
Expand description
Font weight values
Variants§
Thin
Thin font weight (100)
ExtraLight
Extra light font weight (200)
Light
Light font weight (300)
Normal
Normal font weight (400)
Medium
Medium font weight (500)
SemiBold
Semi-bold font weight (600)
Bold
Bold font weight (700)
ExtraBold
Extra bold font weight (800)
Black
Black font weight (900)
Implementations§
Source§impl FontWeight
impl FontWeight
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Trait Implementations§
Source§impl Clone for FontWeight
impl Clone for FontWeight
Source§fn clone(&self) -> FontWeight
fn clone(&self) -> FontWeight
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 FontWeight
impl Debug for FontWeight
Source§impl<'de> Deserialize<'de> for FontWeight
impl<'de> Deserialize<'de> for FontWeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FontWeight
impl Display for FontWeight
Source§impl Hash for FontWeight
impl Hash for FontWeight
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
Source§impl Serialize for FontWeight
impl Serialize for FontWeight
impl Copy for FontWeight
impl Eq for FontWeight
impl StructuralPartialEq for FontWeight
Auto Trait Implementations§
impl Freeze for FontWeight
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnwindSafe for FontWeight
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.