Skip to main content

oxilean_parse/error/
errorseveritylevel_traits.rs

1//! # ErrorSeverityLevel - Trait Implementations
2//!
3//! This module contains trait implementations for `ErrorSeverityLevel`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Display`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::types::ErrorSeverityLevel;
12
13impl std::fmt::Display for ErrorSeverityLevel {
14    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15        match self {
16            Self::Hint => write!(f, "hint"),
17            Self::Note => write!(f, "note"),
18            Self::Warning => write!(f, "warning"),
19            Self::Error => write!(f, "error"),
20            Self::Fatal => write!(f, "fatal"),
21        }
22    }
23}