pub struct CommaFixes;
Expand description
A linter that fixes common comma errors: No space after. Inappropriate space before. Asian commas instead of English commas. This linter only Asian commas anywhere, and wrong spacing of commas between words. Commas between numbers are used differently in different contexts and these are not checked: Lists of numbers: 1, 2, 3 Thousands separators: 1,000,000 Decimal points used mistakenly by Europeans: 3,14159
Trait Implementations§
Source§impl Debug for CommaFixes
impl Debug for CommaFixes
Source§impl Default for CommaFixes
impl Default for CommaFixes
Source§fn default() -> CommaFixes
fn default() -> CommaFixes
Returns the “default value” for a type. Read more
Source§impl Linter for CommaFixes
impl Linter for CommaFixes
Source§fn lint(&mut self, document: &Document) -> Vec<Lint>
fn lint(&mut self, document: &Document) -> Vec<Lint>
Analyzes a document and produces zero or more
Lint
s.
We pass self
mutably for caching purposes.Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
A user-facing description of what kinds of grammatical errors this rule looks for.
It is usually shown in settings menus.
Auto Trait Implementations§
impl Freeze for CommaFixes
impl RefUnwindSafe for CommaFixes
impl Send for CommaFixes
impl Sync for CommaFixes
impl Unpin for CommaFixes
impl UnwindSafe for CommaFixes
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<L> HtmlDescriptionLinter for L
impl<L> HtmlDescriptionLinter for L
fn description_html(&self) -> String
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