FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    try_get_value

    fn try_get_value(self: &Self, family_name: &str) -> Option<Rc<RefCell<GlyphTypefaceMap>>>
    

    The typefaces cached for the family.

    Source

    contains_key

    fn contains_key(self: &Self, family_name: &str) -> bool
    

    Whether typefaces are cached for the family.

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of cached families.

    Source

    keys

    fn keys(self: &Self) -> Vec<String>
    

    The names of the cached families, sorted ignoring case.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.