logo
pub struct LayoutCacheData<T: LayoutTableType> {
    pub layout_table: LayoutTable<T>,
    pub supported_features: RefCell<HashMap<(u32, u32), u64>>,
    pub lookups_index: RefCell<HashMap<(u32, u32, u64), usize>>,
    pub cached_lookups: RefCell<Vec<Vec<(usize, u32)>>>,
    /* private fields */
}

Fields

layout_table: LayoutTable<T>supported_features: RefCell<HashMap<(u32, u32), u64>>

maps (script_tag, opt_lang_tag) to FeatureMask opt_lang_tag = None is represented as DFLT

lookups_index: RefCell<HashMap<(u32, u32, u64), usize>>

maps (script_tag, lang_tag, FeatureMask) to cached_lookups index

cached_lookups: RefCell<Vec<Vec<(usize, u32)>>>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.