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> + SomeTable<'a> + 'a> Debug for LookupList<'a, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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
Source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for LookupList<'a, T>

Source§

fn type_name(&self) -> &str

The name of this table
Source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.