[][src]Struct skia_safe::font_style::Width

#[repr(transparent)]
pub struct 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]

impl PartialEq<Width> for Width[src]

impl From<i32> for Width[src]

impl Copy for Width[src]

impl Deref for Width[src]

type Target = i32

The resulting type after dereferencing.

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]