Skip to main content

LayoutTable

Trait LayoutTable 

Source
pub trait LayoutTable {
    const INDEX: TableIndex;
    const IN_PLACE: bool;

    // Required method
    fn get_lookup(&self, index: u16) -> Option<&LookupInfo>;
}
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 Methods§

Source

fn get_lookup(&self, index: u16) -> Option<&LookupInfo>

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 LayoutTable for GposTable<'_>

Source§

const INDEX: TableIndex = TableIndex::GPOS

Source§

const IN_PLACE: bool = true

Source§

impl LayoutTable for GsubTable<'_>

Source§

const INDEX: TableIndex = TableIndex::GSUB

Source§

const IN_PLACE: bool = false