Function glyph_or_fallback

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

Returns glyph when bundled, or GENERIC_FILE_GLYPH otherwise.

ยงExamples

use ailloli_ui_devicons_font::{glyph_or_fallback, GENERIC_FILE_GLYPH};
assert_eq!(glyph_or_fallback('\u{e68b}'), '\u{e68b}');
assert_eq!(glyph_or_fallback('A'), GENERIC_FILE_GLYPH);