1#[derive(Debug, Clone, Copy)]
2pub enum Presentation {
3 NerdFont(&'static str),
4 Emoji(&'static str),
5 Ascii(&'static str),
6 None,
7}
8
9#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
10pub enum Color {
11 Accent,
12 Success,
13 Warning,
14 Danger,
15 Muted,
16 Info,
17 Custom(u8, u8, u8),
18}
19
20pub trait Glyph {
21 fn presentations(&self) -> &'static [Presentation] {
22 &[]
23 }
24
25 fn color(&self) -> Option<Color> {
26 None
27 }
28
29 fn badge(&self) -> Option<&'static str> {
30 None
31 }
32}