[][src]Struct skia_safe::FontStyleWeight

#[repr(transparent)]
pub struct FontStyleWeight(_);

Wrapper type of a font weight.

Use Weight::from() to create a weight from an i32. Use *weight to pull out the wrapped value of the Weight.

Methods

impl Weight[src]

pub const Invisible: Self[src]

Deprecated:

use INVISIBLE

pub const Thin: Self[src]

Deprecated:

use THIN

pub const ExtraLight: Self[src]

Deprecated:

use EXTRA_LIGHT

pub const Light: Self[src]

Deprecated:

use LIGHT

pub const Normal: Self[src]

Deprecated:

use NORMAL

pub const Medium: Self[src]

Deprecated:

use MEDIUM

pub const SemiBold: Self[src]

Deprecated:

use SEMI_BOLD

pub const Bold: Self[src]

Deprecated:

use BOLD

pub const ExtraBold: Self[src]

Deprecated:

use EXTRA_BOLD

pub const Black: Self[src]

Deprecated:

use BLACK

pub const ExtraBlack: Self[src]

Deprecated:

use EXTRA_BLACK

pub const INVISIBLE: Self[src]

pub const THIN: Self[src]

pub const EXTRA_LIGHT: Self[src]

pub const LIGHT: Self[src]

pub const NORMAL: Self[src]

pub const MEDIUM: Self[src]

pub const SEMI_BOLD: Self[src]

pub const BOLD: Self[src]

pub const EXTRA_BOLD: Self[src]

pub const BLACK: Self[src]

pub const EXTRA_BLACK: Self[src]

Trait Implementations

impl Clone for Weight[src]

impl PartialOrd<Weight> for Weight[src]

impl PartialEq<Weight> for Weight[src]

impl From<i32> for Weight[src]

impl Copy for Weight[src]

impl Deref for Weight[src]

type Target = i32

The resulting type after dereferencing.

Auto Trait Implementations

impl Unpin for Weight

impl Sync for Weight

impl Send for Weight

impl UnwindSafe for Weight

impl RefUnwindSafe for Weight

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]