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