Lines Matching refs:Severity
21 pub enum Severity { enum
34 impl Severity { implementation
38 Severity::Bug => 5, in to_cmp_int()
39 Severity::Error => 4, in to_cmp_int()
40 Severity::Warning => 3, in to_cmp_int()
41 Severity::Note => 2, in to_cmp_int()
42 Severity::Help => 1, in to_cmp_int()
47 impl PartialOrd for Severity { implementation
48 fn partial_cmp(&self, other: &Severity) -> Option<std::cmp::Ordering> { in partial_cmp()
121 pub severity: Severity,
141 pub fn new(severity: Severity) -> Diagnostic<FileId> { in new()
155 Diagnostic::new(Severity::Bug) in bug()
162 Diagnostic::new(Severity::Error) in error()
169 Diagnostic::new(Severity::Warning) in warning()
176 Diagnostic::new(Severity::Note) in note()
183 Diagnostic::new(Severity::Help) in help()