Struct freya_engine::prelude::Width
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§
§impl Width
impl Width
pub const ULTRA_CONDENSED: Width = _
pub const EXTRA_CONDENSED: Width = _
pub const CONDENSED: Width = _
pub const SEMI_CONDENSED: Width = _
pub const NORMAL: Width = _
pub const SEMI_EXPANDED: Width = _
pub const EXPANDED: Width = _
pub const EXTRA_EXPANDED: Width = _
pub const ULTRA_EXPANDED: Width = _
Methods from Deref<Target = i32>§
pub const MIN: i32 = -2_147_483_648i32
pub const MAX: i32 = 2_147_483_647i32
pub const BITS: u32 = 32u32
Trait Implementations§
§impl Ord for Width
impl Ord for Width
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)