LookupList

Type Alias LookupList 

Source
pub type LookupList<'a, T> = TableRef<'a, LookupListMarker<T>>;
Expand description

Aliased Type§

pub struct LookupList<'a, T> {
    pub(crate) shape: LookupListMarker<T>,
    pub(crate) data: FontData<'a>,
}

Fields§

§shape: LookupListMarker<T>§data: FontData<'a>

Implementations§

Source§

impl<'a> LookupList<'a, ()>

Source

pub(crate) fn into_concrete<T>(self) -> LookupList<'a, T>

Source§

impl<'a, T> LookupList<'a, T>

Source

pub(crate) fn of_unit_type(&self) -> LookupList<'a, ()>

Replace the specific generic type on this implementation with ()

Source§

impl<'a, T> LookupList<'a, T>

Source

pub fn lookup_count(&self) -> u16

Number of lookups in this table

Source

pub fn lookup_offsets(&self) -> &'a [BigEndian<Offset16>]

Array of offsets to Lookup tables, from beginning of LookupList — zero based (first lookup is Lookup index = 0)

Source

pub fn lookups(&self) -> ArrayOfOffsets<'a, T, Offset16>
where T: FontRead<'a>,

A dynamically resolving wrapper for lookup_offsets.

Trait Implementations§

Source§

impl<'a, T> FontRead<'a> for LookupList<'a, T>

Source§

fn read(data: FontData<'a>) -> Result<Self, ReadError>

Read an instance of Self from the provided data, performing validation. Read more