Struct ttf_parser::opentype_layout::LookupSubtables
source · 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 copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)