pub struct Weight(pub u16);
Expand description
Visual weight class of a font on a scale from 1 to 1000.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
Source§impl From<Weight> for Attributes
impl From<Weight> for Attributes
Source§fn from(w: Weight) -> Attributes
fn from(w: Weight) -> Attributes
Converts to this type from the input type.
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