Struct ttf_parser::opentype_layout::LookupSubtables
source · [−]pub struct LookupSubtables<'a> { /* private fields */ }
Expand description
A list of lookup subtables.
Implementations
sourceimpl<'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>ⓘNotable traits for LookupSubtablesIter<'a, T>impl<'a, T: LookupSubtable<'a>> Iterator for LookupSubtablesIter<'a, T> type Item = T;
pub fn into_iter<T: LookupSubtable<'a>>(self) -> LookupSubtablesIter<'a, T>ⓘNotable traits for LookupSubtablesIter<'a, T>impl<'a, T: LookupSubtable<'a>> Iterator for LookupSubtablesIter<'a, T> type Item = T;
Creates an iterator over subtables.
We cannot use IntoIterator
here, because we have to use user-provided base type.
Trait Implementations
sourceimpl<'a> Clone for LookupSubtables<'a>
impl<'a> Clone for LookupSubtables<'a>
sourcefn clone(&self) -> LookupSubtables<'a>
fn clone(&self) -> LookupSubtables<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LookupSubtables<'_>
impl Debug for LookupSubtables<'_>
impl<'a> Copy for LookupSubtables<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more