#[non_exhaustive]pub struct TableDirectoryRepr {
pub sfnt_version: uint32,
pub num_tables: uint16,
pub search_range: uint16,
pub entry_selector: uint16,
pub range_shift: uint16,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sfnt_version: uint32§num_tables: uint16§search_range: uint16§entry_selector: uint16§range_shift: uint16Implementations§
Source§impl TableDirectoryRepr
impl TableDirectoryRepr
pub const unsafe fn new_unchecked(bytes: &[u8]) -> &Self
pub const fn directory_as_bytes(&self) -> &[u8] ⓘ
pub const fn table_records_raw(&self) -> &[TableRecordRepr]
pub fn table_record_raw(&self, tag: Tag) -> Option<&TableRecordRepr>
pub const fn table_records(&self) -> TableRecordsIter<'_> ⓘ
pub fn table_record(&self, tag: Tag) -> Option<TableRecordHandle<'_>>
pub fn table_raw<T: Table>(&self) -> Option<&T>
pub fn table<'a, T: TableHandle<'a>>(&'a self) -> Option<T>
Source§impl TableDirectoryRepr
impl TableDirectoryRepr
pub fn cmap(&self) -> Option<&CmapTableRepr>
pub fn head(&self) -> Option<&HeadTableRepr>
pub fn hhea(&self) -> Option<&HheaTableRepr>
pub fn hmtx(&self) -> Option<HmtxTableHandle<'_>>
pub fn maxp(&self) -> Option<&MaxpTableRepr>
pub fn name(&self) -> Option<&NameTableRepr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableDirectoryRepr
impl RefUnwindSafe for TableDirectoryRepr
impl Send for TableDirectoryRepr
impl Sync for TableDirectoryRepr
impl Unpin for TableDirectoryRepr
impl UnsafeUnpin for TableDirectoryRepr
impl UnwindSafe for TableDirectoryRepr
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