Struct owned_ttf_parser::opentype_layout::LookupSubtables
source · pub struct LookupSubtables<'a> {
kind: u16,
data: &'a [u8],
offsets: LazyArray16<'a, Offset16>,
}
Expand description
A list of lookup subtables.
Fields§
§kind: u16
§data: &'a [u8]
§offsets: LazyArray16<'a, Offset16>
Implementations§
source§impl<'a> LookupSubtables<'a>
impl<'a> LookupSubtables<'a>
sourcepub fn get<T>(&self, index: u16) -> Option<T>where
T: LookupSubtable<'a>,
pub fn get<T>(&self, index: u16) -> Option<T>where
T: LookupSubtable<'a>,
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>(self) -> LookupSubtablesIter<'a, T> ⓘwhere
T: LookupSubtable<'a>,
pub fn into_iter<T>(self) -> LookupSubtablesIter<'a, T> ⓘwhere
T: LookupSubtable<'a>,
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