pub enum SelectedLookupList<'a, T: FontRead<'a, Args = ()>> {
Original(LookupList<'a, T>),
Extended(LookupList2<'a, T>),
}Expand description
The lookup list of a GSUB or GPOS table: the original LookupList, or the LookupList2 of a version 1.2 header.
Variants§
Original(LookupList<'a, T>)
A LookupList, with 16-bit offsets.
Extended(LookupList2<'a, T>)
A LookupList2, with 32-bit offsets.
Implementations§
Source§impl SelectedLookupList<'_, PositionLookup<'_>>
impl SelectedLookupList<'_, PositionLookup<'_>>
Source§impl SelectedLookupList<'_, SubstitutionLookup<'_>>
impl SelectedLookupList<'_, SubstitutionLookup<'_>>
Source§impl<'a, T: FontRead<'a, Args = ()> + 'a> SelectedLookupList<'a, T>
impl<'a, T: FontRead<'a, Args = ()> + 'a> SelectedLookupList<'a, T>
Sourcepub fn lookup_count(&self) -> u16
pub fn lookup_count(&self) -> u16
Returns the number of lookups.
Sourcepub fn lookups(&self) -> LayoutOffsetArray<'a, T>
pub fn lookups(&self) -> LayoutOffsetArray<'a, T>
Returns the offsets to the lookups.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Returns the data the lookup offsets are relative to.
Trait Implementations§
Source§impl<'a, T: Clone + FontRead<'a, Args = ()>> Clone for SelectedLookupList<'a, T>
impl<'a, T: Clone + FontRead<'a, Args = ()>> Clone for SelectedLookupList<'a, T>
Source§fn clone(&self) -> SelectedLookupList<'a, T>
fn clone(&self) -> SelectedLookupList<'a, T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T: FontRead<'a, Args = ()>> From<LookupList2<'a, T>> for SelectedLookupList<'a, T>
impl<'a, T: FontRead<'a, Args = ()>> From<LookupList2<'a, T>> for SelectedLookupList<'a, T>
Source§fn from(list: LookupList2<'a, T>) -> Self
fn from(list: LookupList2<'a, T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T: FontRead<'a, Args = ()>> From<LookupList<'a, T>> for SelectedLookupList<'a, T>
impl<'a, T: FontRead<'a, Args = ()>> From<LookupList<'a, T>> for SelectedLookupList<'a, T>
Source§fn from(list: LookupList<'a, T>) -> Self
fn from(list: LookupList<'a, T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, T> !Send for SelectedLookupList<'a, T>
impl<'a, T> !Sync for SelectedLookupList<'a, T>
impl<'a, T> Freeze for SelectedLookupList<'a, T>
impl<'a, T> RefUnwindSafe for SelectedLookupList<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Unpin for SelectedLookupList<'a, T>
impl<'a, T> UnsafeUnpin for SelectedLookupList<'a, T>
impl<'a, T> UnwindSafe for SelectedLookupList<'a, T>where
T: RefUnwindSafe,
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