pub struct FontWeight(pub u16);Expand description
OpenType weight axis value. Conventional named weights span 100..=900; for variable fonts any
value in the font’s wght range is valid.
Tuple Fields§
§0: u16Implementations§
Source§impl FontWeight
impl FontWeight
pub const THIN: Self
pub const EXTRA_LIGHT: Self
pub const LIGHT: Self
pub const NORMAL: Self
pub const MEDIUM: Self
pub const SEMIBOLD: Self
pub const BOLD: Self
pub const EXTRA_BOLD: Self
pub const BLACK: Self
pub const fn new(value: u16) -> Self
pub const fn value(self) -> u16
Trait Implementations§
Source§impl Clone for FontWeight
impl Clone for FontWeight
impl Copy for FontWeight
Source§impl Debug for FontWeight
impl Debug for FontWeight
Source§impl Default for FontWeight
impl Default for FontWeight
impl Eq for FontWeight
Source§impl Hash for FontWeight
impl Hash for FontWeight
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
impl StructuralPartialEq for FontWeight
Auto Trait Implementations§
impl Forget for FontWeight
impl Freeze for FontWeight
impl Move for FontWeight
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnsafeUnpin 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