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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more