pub enum Severity {
Error,
Warning,
Hint,
}Expand description
Severity level for a source diagnostic.
Severity indicates how tools should present a diagnostic. Errors describe invalid source that should prevent normal execution. Warnings describe suspicious source that can still be analyzed. Hints provide low-priority guidance.
let severity = achitek_source::Severity::Warning;
assert_eq!(severity.to_string(), "warning");Variants§
Error
Invalid source that should prevent normal execution.
Warning
Suspicious source that can still be analyzed.
Hint
Low-priority guidance.
Trait Implementations§
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Forget for Severity
impl Freeze for Severity
impl Move for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more