Function curated_to_lucide

Source
pub fn curated_to_lucide(id: IconId) -> Icon
Expand description

Maps the framework’s curated icon identifiers to Lucide glyphs.

Existing IconId::Lucide values pass through. Devicon and SVG identifiers have separate raster paths and therefore map to Circle only as a defensive fallback when this function is called directly.

§Examples

use ailloli_ui_core::IconId;
use ailloli_ui_render_wgpu::icons::lucide::curated_to_lucide;
assert_eq!(char::from(curated_to_lucide(IconId::Plus)),
    char::from(lucide_icons::Icon::Plus));