Enum harper_core::LintKind
source · pub enum LintKind {
Spelling,
Capitalization,
Formatting,
Repetition,
Readability,
Miscellaneous,
}
Variants§
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_readability(&self) -> bool
pub const fn is_readability(&self) -> bool
Returns true
if self
is of variant Readability
.
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
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> 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