pub struct Stretch(/* private fields */);
Expand description
Visual width of a font– a relative change from the normal aspect ratio, typically in the range 0.5 to 2.0.
In variable fonts, this can be controlled with the wdth
axis.
Implementations§
source§impl Stretch
impl Stretch
sourcepub const ULTRA_CONDENSED: Self = _
pub const ULTRA_CONDENSED: Self = _
Width that is 50% of normal.
sourcepub const EXTRA_CONDENSED: Self = _
pub const EXTRA_CONDENSED: Self = _
Width that is 62.5% of normal.
sourcepub const SEMI_CONDENSED: Self = _
pub const SEMI_CONDENSED: Self = _
Width that is 87.5% of normal.
sourcepub const SEMI_EXPANDED: Self = _
pub const SEMI_EXPANDED: Self = _
Width that is 112.5% of normal.
sourcepub const EXTRA_EXPANDED: Self = _
pub const EXTRA_EXPANDED: Self = _
Width that is 150% of normal.
sourcepub const ULTRA_EXPANDED: Self = _
pub const ULTRA_EXPANDED: Self = _
Width that is 200% of normal.
source§impl Stretch
impl Stretch
Trait Implementations§
source§impl PartialOrd for Stretch
impl PartialOrd for Stretch
impl Copy for Stretch
impl StructuralPartialEq for Stretch
Auto Trait Implementations§
impl Freeze for Stretch
impl RefUnwindSafe for Stretch
impl Send for Stretch
impl Sync for Stretch
impl Unpin for Stretch
impl UnwindSafe for Stretch
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
)