CharacterToGlyphMapDictionary
struct · ferroui-base · v0.5.0
struct CharacterToGlyphMapDictionary
A read-only dictionary view (code point to glyph) over a
CharacterToGlyphMap.
Members
new
fn new(map: CharacterToGlyphMap) -> Self
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.
keys
fn keys(self: &Self) -> impl Iterator<Item = i32> + '_
The mapped code points, in range order.
values
fn values(self: &Self) -> impl Iterator<Item = u16> + '_
The glyphs of the mapped code points, in range order.
count
fn count(self: &Self) -> i32
The number of mapped code points (computed once).
contains_key
fn contains_key(self: &Self, key: i32) -> bool
try_get_value
fn try_get_value(self: &Self, key: i32) -> Option<u16>
iter
fn iter(self: &Self) -> impl Iterator<Item = (i32, u16)> + '_
Enumerates the (code point, glyph) pairs, in range order.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.