FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CharacterToGlyphMapDictionary

    struct · ferroui-base · v0.5.0

    struct CharacterToGlyphMapDictionary
    

    A read-only dictionary view (code point to glyph) over a CharacterToGlyphMap.

    View source

    Members

    new

    fn new(map: CharacterToGlyphMap) -> Self
    

    Source

    get

    fn get(self: &Self, key: i32) -> u16
    

    The glyph for the code point (the reference's indexer).

    Panics when the code point is not in the map; use try_get_value for untrusted keys.

    Source

    keys

    fn keys(self: &Self) -> impl Iterator<Item = i32> + '_
    

    The mapped code points, in range order.

    Source

    values

    fn values(self: &Self) -> impl Iterator<Item = u16> + '_
    

    The glyphs of the mapped code points, in range order.

    Source

    count

    fn count(self: &Self) -> i32
    

    The number of mapped code points (computed once).

    Source

    contains_key

    fn contains_key(self: &Self, key: i32) -> bool
    

    Source

    try_get_value

    fn try_get_value(self: &Self, key: i32) -> Option<u16>
    

    Source

    iter

    fn iter(self: &Self) -> impl Iterator<Item = (i32, u16)> + '_
    

    Enumerates the (code point, glyph) pairs, in range order.

    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

    Availability

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