Struct allsorts_no_std::woff::WoffFont [−][src]
Fields
scope: ReadScope<'a>
woff_header: WoffHeader
table_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]
&self,
tag: u32
) -> Option<TableDirectoryEntry>
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]
fn table_data<'b>(
&'b self,
tag: u32
) -> Result<Option<Cow<'b, [u8]>>, ParseError>
[src]
&'b self,
tag: u32
) -> Result<Option<Cow<'b, [u8]>>, ParseError>
fn has_table(&self, tag: u32) -> bool
[src]
fn read_table_data<'a>(&'a self, tag: u32) -> Result<Cow<'a, [u8]>, ParseError>
[src]
impl<'a> ReadBinary<'a> for WoffFont<'a>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,