pub struct Width(/* private fields */);
Expand description
Wrapper type for the width of a font.
To create a width of a font from an i32, use Width::from(). To access the underlying value of the font weight, dereference *weight.
Implementations§
Source§impl Width
impl Width
pub const ULTRA_CONDENSED: Self
pub const EXTRA_CONDENSED: Self
pub const CONDENSED: Self
pub const SEMI_CONDENSED: Self
pub const NORMAL: Self
pub const SEMI_EXPANDED: Self
pub const EXPANDED: Self
pub const EXTRA_EXPANDED: Self
pub const ULTRA_EXPANDED: Self
Trait Implementations§
Source§impl Ord for Width
impl Ord for Width
Source§impl PartialOrd for Width
impl PartialOrd for Width
impl Copy for Width
impl Eq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnwindSafe for Width
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