pub struct TableDirectory {
pub sfnt_version: uint32,
pub num_tables: uint16,
pub search_range: uint16,
pub entry_selector: uint16,
pub range_shift: uint16,
/* private fields */
}Fields§
§sfnt_version: uint32§num_tables: uint16§search_range: uint16§entry_selector: uint16§range_shift: uint16Implementations§
Source§impl TableDirectory
impl TableDirectory
pub fn new(bytes: &[u8]) -> Result<&Self, TableError>
pub const unsafe fn new_unchecked(bytes: &[u8]) -> &Self
pub const fn directory_as_bytes(&self) -> &[u8] ⓘ
pub const fn table_records_raw(&self) -> &[TableRecordRaw]
pub fn table_record_raw(&self, tag: Tag) -> Option<&TableRecordRaw>
pub const fn table_records(&self) -> TableRecordsIter<'_> ⓘ
pub fn table_record(&self, tag: Tag) -> Option<TableRecord<'_>>
pub fn table<'a, T: Table<'a>>(&'a self) -> Result<T, TableError>
Source§impl TableDirectory
impl TableDirectory
pub fn cmap(&self) -> Result<Cmap<'_>, TableError>
pub fn glyf(&self) -> Result<Glyf<'_>, TableError>
pub fn head(&self) -> Result<Head<'_>, TableError>
pub fn hhea(&self) -> Result<Hhea<'_>, TableError>
pub fn hmtx(&self) -> Result<Hmtx<'_>, TableError>
pub fn loca(&self) -> Result<Loca<'_>, TableError>
pub fn maxp(&self) -> Result<Maxp<'_>, TableError>
pub fn name(&self) -> Result<Name<'_>, TableError>
pub fn os_2(&self) -> Result<Os_2<'_>, TableError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableDirectory
impl RefUnwindSafe for TableDirectory
impl Send for TableDirectory
impl Sync for TableDirectory
impl Unpin for TableDirectory
impl UnsafeUnpin for TableDirectory
impl UnwindSafe for TableDirectory
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