pub enum LintKind {
Spelling,
Capitalization,
Style,
Formatting,
Repetition,
Enhancement,
Readability,
WordChoice,
Miscellaneous,
}
Expand description
The general category a Lint
falls into.
There’s no reason not to add a new item here if you are adding a new rule that doesn’t fit
the existing categories.
Variants§
Spelling
Capitalization
Style
Formatting
Repetition
Enhancement
Readability
WordChoice
Miscellaneous
Implementations§
Source§impl LintKind
impl LintKind
Sourcepub const fn is_spelling(&self) -> bool
pub const fn is_spelling(&self) -> bool
Returns true
if self
is of variant Spelling
.
Sourcepub const fn is_capitalization(&self) -> bool
pub const fn is_capitalization(&self) -> bool
Returns true
if self
is of variant Capitalization
.
Sourcepub const fn is_formatting(&self) -> bool
pub const fn is_formatting(&self) -> bool
Returns true
if self
is of variant Formatting
.
Sourcepub const fn is_repetition(&self) -> bool
pub const fn is_repetition(&self) -> bool
Returns true
if self
is of variant Repetition
.
Sourcepub const fn is_enhancement(&self) -> bool
pub const fn is_enhancement(&self) -> bool
Returns true
if self
is of variant Enhancement
.
Sourcepub const fn is_readability(&self) -> bool
pub const fn is_readability(&self) -> bool
Returns true
if self
is of variant Readability
.
Sourcepub const fn is_word_choice(&self) -> bool
pub const fn is_word_choice(&self) -> bool
Returns true
if self
is of variant WordChoice
.
Sourcepub const fn is_miscellaneous(&self) -> bool
pub const fn is_miscellaneous(&self) -> bool
Returns true
if self
is of variant Miscellaneous
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LintKind
impl<'de> Deserialize<'de> for LintKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for LintKind
impl StructuralPartialEq for LintKind
Auto Trait Implementations§
impl Freeze for LintKind
impl RefUnwindSafe for LintKind
impl Send for LintKind
impl Sync for LintKind
impl Unpin for LintKind
impl UnwindSafe for LintKind
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<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