Trait LayoutTable

Source
pub trait LayoutTable {
    type Lookup: LayoutLookup;

    const INDEX: TableIndex;
    const IN_PLACE: bool;

    // Required method
    fn get_lookup(&self, index: LookupIndex) -> Option<&Self::Lookup>;
}
Expand description

A lookup-based layout table (GSUB or GPOS).

Required Associated Constants§

Source

const INDEX: TableIndex

The index of this table.

Source

const IN_PLACE: bool

Whether lookups in this table can be applied to the buffer in-place.

Required Associated Types§

Source

type Lookup: LayoutLookup

The kind of lookup stored in this table.

Required Methods§

Source

fn get_lookup(&self, index: LookupIndex) -> Option<&Self::Lookup>

Get the lookup at the specified index.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> LayoutTable for PositioningTable<'a>

Source§

const INDEX: TableIndex = TableIndex::GPOS

Source§

const IN_PLACE: bool = true

Source§

type Lookup = PositioningLookup<'a>

Source§

impl<'a> LayoutTable for SubstitutionTable<'a>

Source§

const INDEX: TableIndex = TableIndex::GSUB

Source§

const IN_PLACE: bool = false

Source§

type Lookup = SubstLookup<'a>