Skip to main content

oxilean_codegen/lua_backend/
luaextdiagseverity_traits.rs

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