pub struct CorrectNumberSuffix;
Expand description
Detect incorrect number suffix (e.g. “2st”).
Trait Implementations§
Source§impl Clone for CorrectNumberSuffix
impl Clone for CorrectNumberSuffix
Source§fn clone(&self) -> CorrectNumberSuffix
fn clone(&self) -> CorrectNumberSuffix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CorrectNumberSuffix
impl Debug for CorrectNumberSuffix
Source§impl Default for CorrectNumberSuffix
impl Default for CorrectNumberSuffix
Source§fn default() -> CorrectNumberSuffix
fn default() -> CorrectNumberSuffix
Returns the “default value” for a type. Read more
Source§impl Linter for CorrectNumberSuffix
impl Linter for CorrectNumberSuffix
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.
impl Copy for CorrectNumberSuffix
Auto Trait Implementations§
impl Freeze for CorrectNumberSuffix
impl RefUnwindSafe for CorrectNumberSuffix
impl Send for CorrectNumberSuffix
impl Sync for CorrectNumberSuffix
impl Unpin for CorrectNumberSuffix
impl UnwindSafe for CorrectNumberSuffix
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<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