Function supports_glyph

Source
pub fn supports_glyph(glyph: char) -> bool
Expand description

Returns whether glyph is present in the audited embedded font.

The check uses binary search over 198 sorted entries and therefore takes logarithmic time without allocating. Any Unicode scalar value is accepted.

ยงExamples

use ailloli_ui_devicons_font::supports_glyph;
assert!(supports_glyph('\u{e68b}')); // Rust file icon
assert!(!supports_glyph('A'));