Struct allsorts_no_std::woff::WoffFont[][src]

pub struct WoffFont<'a> {
    pub scope: ReadScope<'a>,
    pub woff_header: WoffHeader,
    pub table_directory: ReadArray<'a, TableDirectoryEntry>,
}

Fields

scope: ReadScope<'a>woff_header: WoffHeadertable_directory: ReadArray<'a, TableDirectoryEntry>

Implementations

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

pub fn flavor(&self) -> u32[src]

The “sfnt version” of the input font

pub fn extended_metadata(&self) -> Result<Option<String>, ParseError>[src]

Decompress and return the extended metadata XML if present

pub fn find_table_directory_entry(
    &self,
    tag: u32
) -> Option<TableDirectoryEntry>
[src]

Find the table directory entry for the given tag

Trait Implementations

impl<'a> Clone for WoffFont<'a>[src]

impl<'a> FontTableProvider for WoffFont<'a>[src]

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

type HostType = Self

Auto Trait Implementations

impl<'a> RefUnwindSafe for WoffFont<'a>

impl<'a> Send for WoffFont<'a>

impl<'a> Sync for WoffFont<'a>

impl<'a> Unpin for WoffFont<'a>

impl<'a> UnwindSafe for WoffFont<'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> 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.