Lines Matching refs:Severity
3 use crate::diagnostic::{LabelStyle, Severity};
139 pub fn header(&self, severity: Severity) -> &ColorSpec { in header()
141 Severity::Bug => &self.header_bug, in header()
142 Severity::Error => &self.header_error, in header()
143 Severity::Warning => &self.header_warning, in header()
144 Severity::Note => &self.header_note, in header()
145 Severity::Help => &self.header_help, in header()
150 pub fn label(&self, severity: Severity, label_style: LabelStyle) -> &ColorSpec { in label() argument
152 (LabelStyle::Primary, Severity::Bug) => &self.primary_label_bug, in label()
153 (LabelStyle::Primary, Severity::Error) => &self.primary_label_error, in label()
154 (LabelStyle::Primary, Severity::Warning) => &self.primary_label_warning, in label()
155 (LabelStyle::Primary, Severity::Note) => &self.primary_label_note, in label()
156 (LabelStyle::Primary, Severity::Help) => &self.primary_label_help, in label()