Trait allsorts::tables::FontTableProvider [−][src]
pub trait FontTableProvider { fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>; fn has_table<'a>(&'a self, tag: u32) -> bool; fn read_table_data<'a>(
&'a self,
tag: u32
) -> Result<Cow<'a, [u8]>, ParseError> { ... } }
Required methods
fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>
fn table_data<'a>(
&'a self,
tag: u32
) -> Result<Option<Cow<'a, [u8]>>, ParseError>
Return data for the specified table if present
Provided methods
fn read_table_data<'a>(&'a self, tag: u32) -> Result<Cow<'a, [u8]>, ParseError>