pub struct OffsetTable<'a> {
pub sfnt_version: u32,
pub search_range: u16,
pub entry_selector: u16,
pub range_shift: u16,
pub table_records: ReadArray<'a, TableRecord>,
}Expand description
Fields§
§sfnt_version: u32§search_range: u16§entry_selector: u16§range_shift: u16§table_records: ReadArray<'a, TableRecord>Implementations§
Source§impl<'a> OffsetTable<'a>
impl<'a> OffsetTable<'a>
pub fn find_table_record(&self, tag: u32) -> Option<TableRecord>
pub fn read_table( &self, scope: &ReadScope<'a>, tag: u32, ) -> Result<Option<ReadScope<'a>>, ParseError>
Trait Implementations§
Source§impl<'a> Clone for OffsetTable<'a>
impl<'a> Clone for OffsetTable<'a>
Source§fn clone(&self) -> OffsetTable<'a>
fn clone(&self) -> OffsetTable<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'b> ReadBinary for OffsetTable<'b>
impl<'b> ReadBinary for OffsetTable<'b>
Auto Trait Implementations§
impl<'a> Freeze for OffsetTable<'a>
impl<'a> RefUnwindSafe for OffsetTable<'a>
impl<'a> Send for OffsetTable<'a>
impl<'a> Sync for OffsetTable<'a>
impl<'a> Unpin for OffsetTable<'a>
impl<'a> UnwindSafe for OffsetTable<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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