Enum DiagnosticSeverity
pub enum DiagnosticSeverity {
Note,
Remark,
Warning,
Error,
}Expand description
Severity of one user facing finding.
Declared least to most severe so the derived Ord gives the dominant
severity of a set and a >= Error filter keeps meaning.
Variants§
Note
Adds context to another diagnostic.
Remark
Reports useful information about a successful operation.
Warning
Reports usable data whose semantics were defaulted, approximated, or lost.
Error
Reports invalid data or the finding that ended an operation.
Implementations§
§impl DiagnosticSeverity
impl DiagnosticSeverity
Trait Implementations§
§impl Clone for DiagnosticSeverity
impl Clone for DiagnosticSeverity
§fn clone(&self) -> DiagnosticSeverity
fn clone(&self) -> DiagnosticSeverity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiagnosticSeverity
§impl Debug for DiagnosticSeverity
impl Debug for DiagnosticSeverity
§impl<'de> Deserialize<'de> for DiagnosticSeverity
impl<'de> Deserialize<'de> for DiagnosticSeverity
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagnosticSeverity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagnosticSeverity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiagnosticSeverity
§impl Hash for DiagnosticSeverity
impl Hash for DiagnosticSeverity
§impl Ord for DiagnosticSeverity
impl Ord for DiagnosticSeverity
§fn cmp(&self, other: &DiagnosticSeverity) -> Ordering
fn cmp(&self, other: &DiagnosticSeverity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for DiagnosticSeverity
impl PartialEq for DiagnosticSeverity
§fn eq(&self, other: &DiagnosticSeverity) -> bool
fn eq(&self, other: &DiagnosticSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl PartialOrd for DiagnosticSeverity
impl PartialOrd for DiagnosticSeverity
§impl Serialize for DiagnosticSeverity
impl Serialize for DiagnosticSeverity
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DiagnosticSeverity
Auto Trait Implementations§
impl Freeze for DiagnosticSeverity
impl RefUnwindSafe for DiagnosticSeverity
impl Send for DiagnosticSeverity
impl Sync for DiagnosticSeverity
impl Unpin for DiagnosticSeverity
impl UnsafeUnpin for DiagnosticSeverity
impl UnwindSafe for DiagnosticSeverity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more