Struct allsorts::tables::OffsetTable
source · [−]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
sourceimpl<'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
sourceimpl<'a> Clone for OffsetTable<'a>
impl<'a> Clone for OffsetTable<'a>
sourcefn clone(&self) -> OffsetTable<'a>
fn clone(&self) -> OffsetTable<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> ReadBinary<'a> for OffsetTable<'a>
impl<'a> ReadBinary<'a> for OffsetTable<'a>
type HostType = OffsetTable<'a>
fn read(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more