pub enum RuleSeverity {
Error,
Warning,
Hint,
Information,
}Expand description
How a diagnostic is drawn, in this crate’s own vocabulary — see DiagnosticCode::severity.
Variants§
Error
The program will not build, or the text does not parse.
Warning
Something is wrong in a way the language permits — dead code, a redefinition.
Hint
The quietest level: a suggestion a client may draw as a dotted underline.
Information
Not a complaint at all — a fact about where a file is.
Trait Implementations§
Source§impl Clone for RuleSeverity
impl Clone for RuleSeverity
impl Copy for RuleSeverity
Source§impl Debug for RuleSeverity
impl Debug for RuleSeverity
impl Eq for RuleSeverity
Source§impl Hash for RuleSeverity
impl Hash for RuleSeverity
Source§impl Ord for RuleSeverity
impl Ord for RuleSeverity
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RuleSeverity
impl PartialEq for RuleSeverity
Source§impl PartialOrd for RuleSeverity
impl PartialOrd for RuleSeverity
impl StructuralPartialEq for RuleSeverity
Auto Trait Implementations§
impl Forget for RuleSeverity
impl Freeze for RuleSeverity
impl Move for RuleSeverity
impl RefUnwindSafe for RuleSeverity
impl Send for RuleSeverity
impl Sync for RuleSeverity
impl Unpin for RuleSeverity
impl UnsafeUnpin for RuleSeverity
impl UnwindSafe for RuleSeverity
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more