#[repr(C)]
#[derive(Clone, PartialEq, Eq)]
pub enum ErrorLevel {
Warning,
Error,
}
impl ErrorLevel {
pub fn warning() -> Self {
Self::Warning
}
pub fn error() -> Self {
Self::Error
}
pub fn is_warning(&self) -> bool {
matches!(self, Self::Warning)
}
pub fn is_error(&self) -> bool {
matches!(self, Self::Error)
}
}