[−][src]Struct skia_safe::font_style::Width
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.
Methods
impl Width
[src]
pub const UltraCondensed: Self
[src]
Deprecated:
use ULTRA_CONDENSED
pub const ExtraCondensed: Self
[src]
Deprecated:
use EXTRA_CONDENSED
pub const Condensed: Self
[src]
Deprecated:
use CONDENSED
pub const SemiCondensed: Self
[src]
Deprecated:
use SEMI_CONDENSED
pub const Normal: Self
[src]
Deprecated:
use NORMAL
pub const SemiExpanded: Self
[src]
Deprecated:
use SEMI_EXPANDED
pub const Expanded: Self
[src]
Deprecated:
use EXPANDED
pub const ExtraExpanded: Self
[src]
Deprecated:
use EXTRA_EXPANDED
pub const UltraExpanded: Self
[src]
Deprecated:
use ULTRA_EXPANDED
pub const ULTRA_CONDENSED: Self
[src]
pub const EXTRA_CONDENSED: Self
[src]
pub const CONDENSED: Self
[src]
pub const SEMI_CONDENSED: Self
[src]
pub const NORMAL: Self
[src]
pub const SEMI_EXPANDED: Self
[src]
pub const EXPANDED: Self
[src]
pub const EXTRA_EXPANDED: Self
[src]
pub const ULTRA_EXPANDED: Self
[src]
Trait Implementations
impl Clone for Width
[src]
impl PartialOrd<Width> for Width
[src]
fn partial_cmp(&self, other: &Width) -> Option<Ordering>
[src]
fn lt(&self, other: &Width) -> bool
[src]
fn le(&self, other: &Width) -> bool
[src]
fn gt(&self, other: &Width) -> bool
[src]
fn ge(&self, other: &Width) -> bool
[src]
impl PartialEq<Width> for Width
[src]
impl From<i32> for Width
[src]
impl Copy for Width
[src]
impl Deref for Width
[src]
Auto Trait Implementations
impl Unpin for Width
impl Sync for Width
impl Send for Width
impl UnwindSafe for Width
impl RefUnwindSafe for Width
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,