Enum clang::diagnostic::Severity
source · [−]#[repr(C)]
pub enum Severity {
Ignored,
Note,
Warning,
Error,
Fatal,
}
Expand description
Indicates the severity of a diagnostic.
Variants
Ignored
The diagnostic has been suppressed (e.g., by a command-line option).
Note
The diagnostic is attached to the previous non-note diagnostic.
Warning
The diagnostic targets suspicious code that may or may not be wrong.
Error
The diagnostic targets ill-formed code.
Fatal
The diagnostic targets code that is ill-formed in such a way that parser recovery is unlikely to produce any useful results.
Trait Implementations
sourceimpl Ord for Severity
impl Ord for Severity
sourceimpl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
sourcefn partial_cmp(&self, other: &Severity) -> Option<Ordering>
fn partial_cmp(&self, other: &Severity) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Severity
impl Eq for Severity
impl StructuralEq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more