MCPcopy Create free account
hub / github.com/Ruddle/Fomos / get

Function get

bootloader/kernel/src/framebuffer.rs:37–43  ·  view source on GitHub ↗
(c: char)

Source from the content-addressed store, hash-verified

35/// Returns the raster of the given char or the raster of [`font_constants::BACKUP_CHAR`].
36fn get_char_raster(c: char) -> RasterizedChar {
37 fn get(c: char) -> Option<RasterizedChar> {
38 get_raster(
39 c,
40 font_constants::FONT_WEIGHT,
41 font_constants::CHAR_RASTER_HEIGHT,
42 )
43 }
44 get(c).unwrap_or_else(|| get(BACKUP_CHAR).expect("Should get raster of backup char."))
45}
46

Callers 1

get_char_rasterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected