pub struct HungerPang { /* private fields */ }
Expand description
Looks for slight improper modifications to the phrase hunger pang
.
Implementations§
Source§impl HungerPang
impl HungerPang
Trait Implementations§
Source§impl Default for HungerPang
impl Default for HungerPang
Source§impl PatternLinter for HungerPang
impl PatternLinter for HungerPang
Source§fn match_to_lint(&self, matched_tokens: &[Token], source: &[char]) -> Lint
fn match_to_lint(&self, matched_tokens: &[Token], source: &[char]) -> Lint
If any portions of a
Document
match Self::pattern
, they are passed through PatternLinter::match_to_lint
to be
transformed into a Lint
for editor consumption.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 HungerPang
impl !RefUnwindSafe for HungerPang
impl !Send for HungerPang
impl !Sync for HungerPang
impl Unpin for HungerPang
impl !UnwindSafe for HungerPang
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 moreSource§impl<L> Linter for Lwhere
L: PatternLinter,
impl<L> Linter for Lwhere
L: PatternLinter,
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) -> &str
fn description(&self) -> &str
A user-facing description of what kinds of grammatical errors this rule looks for.
It is usually shown in settings menus.