Struct allsorts_no_std::woff2::Woff2Font[][src]

pub struct Woff2Font<'a> {
    pub scope: ReadScope<'a>,
    pub woff_header: Woff2Header,
    pub table_directory: Vec<TableDirectoryEntry>,
    pub collection_directory: Option<Directory>,
    pub table_data_block: Vec<u8>,
}

Fields

scope: ReadScope<'a>woff_header: Woff2Headertable_directory: Vec<TableDirectoryEntry>collection_directory: Option<Directory>table_data_block: Vec<u8>

Implementations

impl<'a> Woff2Font<'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 table_data_block_scope(&'a self) -> ReadScope<'a>[src]

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

pub fn read_table(
    &self,
    tag: u32,
    index: usize
) -> Result<Option<ReadBuf<'_>>, ParseError>
[src]

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

Trait Implementations

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

type HostType = Self

Auto Trait Implementations

impl<'a> RefUnwindSafe for Woff2Font<'a>

impl<'a> Send for Woff2Font<'a>

impl<'a> Sync for Woff2Font<'a>

impl<'a> Unpin for Woff2Font<'a>

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