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
§fn partial_cmp(&self, other: &Width) -> Option<Ordering>
fn partial_cmp(&self, other: &Width) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Width
impl Eq for Width
impl StructuralEq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
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