winresult_types/
debug.rs

1use crate::*;
2use core::fmt::{self, Debug, Formatter};
3
4impl Debug for NtStatusSeverity {
5    fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
6        let s = match self.0 {
7            0 => "STATUS::SEVERITY::SUCCESS",
8            1 => "STATUS::SEVERITY::INFORMATIONAL",
9            2 => "STATUS::SEVERITY::WARNING",
10            3 => "STATUS::SEVERITY::ERROR",
11            _ => "STATUS::SEVERITY::???",
12        };
13        write!(fmt, "{}", s)
14    }
15}
16
17include!("gen/debug.rs");