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§
Sourceconst INDEX: TableIndex
const INDEX: TableIndex
The index of this table.
Required Associated Types§
Sourcetype Lookup: LayoutLookup
type Lookup: LayoutLookup
The kind of lookup stored in this table.
Required Methods§
Sourcefn get_lookup(&self, index: LookupIndex) -> Option<&Self::Lookup>
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.