pub struct Weight(/* private fields */);
Expand description
Wrapper type of a font weight.
Use Weight::from() to create a weight from an i32. Use *weight to pull out the wrapped value of the Weight.
Implementations§
Source§impl Weight
impl Weight
pub const INVISIBLE: Self
pub const THIN: Self
pub const EXTRA_LIGHT: Self
pub const LIGHT: Self
pub const NORMAL: Self
pub const MEDIUM: Self
pub const SEMI_BOLD: Self
pub const BOLD: Self
pub const EXTRA_BOLD: Self
pub const BLACK: Self
pub const EXTRA_BLACK: Self
Trait Implementations§
Source§impl Ord for Weight
impl Ord for Weight
Source§impl PartialOrd for Weight
impl PartialOrd for Weight
impl Copy for Weight
impl Eq for Weight
impl StructuralPartialEq for Weight
Auto Trait Implementations§
impl Freeze for Weight
impl RefUnwindSafe for Weight
impl Send for Weight
impl Sync for Weight
impl Unpin for Weight
impl UnwindSafe for Weight
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