Struct allsorts::woff2::Woff2TableProvider
source · pub struct Woff2TableProvider { /* private fields */ }
Implementations§
Trait Implementations§
source§impl FontTableProvider for Woff2TableProvider
impl FontTableProvider for Woff2TableProvider
source§fn table_data(&self, tag: u32) -> Result<Option<Cow<'_, [u8]>>, ParseError>
fn table_data(&self, tag: u32) -> Result<Option<Cow<'_, [u8]>>, ParseError>
Return data for the specified table if present
fn has_table(&self, tag: u32) -> bool
The tags of the tables within this font. Read more
fn read_table_data(&self, tag: u32) -> Result<Cow<'_, [u8]>, ParseError>
source§impl SfntVersion for Woff2TableProvider
impl SfntVersion for Woff2TableProvider
fn sfnt_version(&self) -> u32
Auto Trait Implementations§
impl Freeze for Woff2TableProvider
impl RefUnwindSafe for Woff2TableProvider
impl Send for Woff2TableProvider
impl Sync for Woff2TableProvider
impl Unpin for Woff2TableProvider
impl UnwindSafe for Woff2TableProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more