pub struct Lookup<'a> { /* private fields */ }Expand description
One lookup: type, flags, and subtable count (subtables themselves are out of scope for v1).
Implementations§
Source§impl<'a> Lookup<'a>
impl<'a> Lookup<'a>
Sourcepub fn lookup_type(&self) -> Result<u16, ParseError>
pub fn lookup_type(&self) -> Result<u16, ParseError>
Sourcepub fn lookup_flag(&self) -> Result<u16, ParseError>
pub fn lookup_flag(&self) -> Result<u16, ParseError>
Lookup flag (bit 4 marks a mark-filtering set; see
mark_filtering_set).
§Errors
Truncation (impossible post-parse).
Sourcepub const fn sub_table_count(&self) -> u16
pub const fn sub_table_count(&self) -> u16
Number of subtables.
Sourcepub fn mark_filtering_set(&self) -> Result<Option<u16>, ParseError>
pub fn mark_filtering_set(&self) -> Result<Option<u16>, ParseError>
Mark-filtering set index, present only when the lookup flag has bit 4 (0x0010) set.
§Errors
Truncation of the extended lookup header.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Lookup<'a>
impl<'a> RefUnwindSafe for Lookup<'a>
impl<'a> Send for Lookup<'a>
impl<'a> Sync for Lookup<'a>
impl<'a> Unpin for Lookup<'a>
impl<'a> UnsafeUnpin for Lookup<'a>
impl<'a> UnwindSafe for Lookup<'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