pub struct FontWeight(/* private fields */);Expand description
Visual weight of a font, on the standard 1-1000 CSS font-weight scale.
Mirrors parley/fontique’s FontWeight (see parley::FontWeight) without
leaking the type itself past this crate’s boundary.
Implementations§
Source§impl FontWeight
impl FontWeight
Sourcepub const EXTRA_LIGHT: Self
pub const EXTRA_LIGHT: Self
Weight value of 200.
Sourcepub const EXTRA_BOLD: Self
pub const EXTRA_BOLD: Self
Weight value of 800.
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
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
Source§impl PartialOrd for FontWeight
impl PartialOrd 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 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