[][src]Enum polyhorn_ios::font::FontFamily

pub enum FontFamily<S = &'static str> {
    Generic(GenericFontFamily),
    Named(S),
}

Controls the font family that produces the glyphs that are drawn for a text.

Variants

This is a system-dependent font family in the given generic category.

Named(S)

This is a specific font family referred to by its PostScript name.

Trait Implementations

impl<S> Clone for FontFamily<S> where
    S: Clone
[src]

impl<S> Copy for FontFamily<S> where
    S: Copy
[src]

impl<S> Debug for FontFamily<S> where
    S: Debug
[src]

impl<S> Eq for FontFamily<S> where
    S: Eq
[src]

impl<S> FromStr for FontFamily<S>[src]

type Err = <GenericFontFamily as FromStr>::Err

The associated error which can be returned from parsing.

impl<S> PartialEq<FontFamily<S>> for FontFamily<S> where
    S: PartialEq<S>, 
[src]

impl<S> StructuralEq for FontFamily<S>[src]

impl<S> StructuralPartialEq for FontFamily<S>[src]

impl<T> ToTokens for FontFamily<T> where
    T: ToTokens
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for FontFamily<S> where
    S: RefUnwindSafe

impl<S> Send for FontFamily<S> where
    S: Send

impl<S> Sync for FontFamily<S> where
    S: Sync

impl<S> Unpin for FontFamily<S> where
    S: Unpin

impl<S> UnwindSafe for FontFamily<S> where
    S: UnwindSafe

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.