Enum allsorts_no_std::font_data::FontData[][src]

pub enum FontData<'a> {
    OpenType(OpenTypeFont<'a>),
    Woff(WoffFont<'a>),
    Woff2(Woff2Font<'a>),
}

Type that can represent any of the supported font formats.

Variants

OpenType(OpenTypeFont<'a>)
Woff(WoffFont<'a>)
Woff2(Woff2Font<'a>)

Implementations

impl<'a> FontData<'a>[src]

pub fn table_provider(
    &'a self,
    index: usize
) -> Result<DynamicFontTableProvider<'a>, ReadWriteError>
[src]

Obtain an implementation of FontTableProvider for this font.

Trait Implementations

impl<'a> ReadBinary<'a> for FontData<'a>[src]

type HostType = Self

Auto Trait Implementations

impl<'a> RefUnwindSafe for FontData<'a>

impl<'a> Send for FontData<'a>

impl<'a> Sync for FontData<'a>

impl<'a> Unpin for FontData<'a>

impl<'a> UnwindSafe for FontData<'a>

Blanket Implementations

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

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

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

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

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

impl<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

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.