Type Alias read_fonts::tables::layout::LookupList

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

Aliased Type§

struct LookupList<'a, T> { /* private fields */ }

Implementations§

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.