libutils 8.34.20

Common library types for faster development
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//^
//^ SEVERITY
//^

//> SEVERITY -> ENUM
pub enum Severity {
    Warning,
    Error,
    Critical
} impl const Into<&'static str> for &Severity {
    fn into(self) -> &'static str {return match self {
        Severity::Critical => "critical",
        Severity::Error => "error",
        Severity::Warning => "warning"
    }}
}