pub struct LookupSubtables<'a> { /* private fields */ }Expand description
A list of lookup subtables.
Implementations§
Source§impl<'a> LookupSubtables<'a>
 
impl<'a> LookupSubtables<'a>
Sourcepub fn get<T: LookupSubtable<'a>>(&self, index: u16) -> Option<T>
 
pub fn get<T: LookupSubtable<'a>>(&self, index: u16) -> Option<T>
Parses a subtable at index.
Accepts either
PositioningSubtable
or SubstitutionSubtable.
Technically, we can enforce it at compile time, but it makes code too convoluted.
Sourcepub fn into_iter<T: LookupSubtable<'a>>(self) -> LookupSubtablesIter<'a, T> ⓘ
 
pub fn into_iter<T: LookupSubtable<'a>>(self) -> LookupSubtablesIter<'a, T> ⓘ
Creates an iterator over subtables.
We cannot use IntoIterator here, because we have to use user-provided base type.
Trait Implementations§
Source§impl<'a> Clone for LookupSubtables<'a>
 
impl<'a> Clone for LookupSubtables<'a>
Source§fn clone(&self) -> LookupSubtables<'a>
 
fn clone(&self) -> LookupSubtables<'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 Debug for LookupSubtables<'_>
 
impl Debug for LookupSubtables<'_>
impl<'a> Copy for LookupSubtables<'a>
Auto Trait Implementations§
impl<'a> Freeze for LookupSubtables<'a>
impl<'a> RefUnwindSafe for LookupSubtables<'a>
impl<'a> Send for LookupSubtables<'a>
impl<'a> Sync for LookupSubtables<'a>
impl<'a> Unpin for LookupSubtables<'a>
impl<'a> UnwindSafe for LookupSubtables<'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