GlyphTypefaceCache
struct · ferroui-base · v0.5.0
struct GlyphTypefaceCache
The glyph typefaces of a font collection by family name. Family names are compared ignoring case.
The entries are kept sorted by name, so lookups neither allocate nor hash.
Members
try_get_value
fn try_get_value(self: &Self, family_name: &str) -> Option<Rc<RefCell<GlyphTypefaceMap>>>
The typefaces cached for the family.
contains_key
fn contains_key(self: &Self, family_name: &str) -> bool
Whether typefaces are cached for the family.
count
fn count(self: &Self) -> usize
The number of cached families.
keys
fn keys(self: &Self) -> Vec<String>
The names of the cached families, sorted ignoring case.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.