pub struct ReflexivePronoun { /* private fields */ }
Expand description
Matches reflexive pronouns with configurable strictness.
By default, only matches standard English reflexive pronouns. Use with_common_errors()
to include
frequently encountered non-standard forms like “hisself” or “theirself”.
Implementations§
Source§impl ReflexivePronoun
impl ReflexivePronoun
Sourcepub fn standard() -> Self
pub fn standard() -> Self
Creates a matcher for standard English reflexive pronouns.
Matches only the correct forms: “myself”, “yourself”, “himself”, “herself”, “itself”, “ourselves”, “yourselves”, and “themselves”.
Sourcepub fn with_common_errors() -> Self
pub fn with_common_errors() -> Self
Creates a matcher that includes non-standard but commonly used reflexive pronouns.
In addition to standard forms, matches common errors like “hisself”, “theirself”, and other non-standard forms that are frequently seen in user-generated content.
Trait Implementations§
Source§impl Default for ReflexivePronoun
impl Default for ReflexivePronoun
Auto Trait Implementations§
impl Freeze for ReflexivePronoun
impl RefUnwindSafe for ReflexivePronoun
impl Send for ReflexivePronoun
impl Sync for ReflexivePronoun
impl Unpin for ReflexivePronoun
impl UnwindSafe for ReflexivePronoun
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<E> ExprExt for E
impl<E> ExprExt for E
Source§fn iter_matches<'a>(
&'a self,
tokens: &'a [Token],
source: &'a [char],
) -> Box<dyn Iterator<Item = Span> + 'a>
fn iter_matches<'a>( &'a self, tokens: &'a [Token], source: &'a [char], ) -> Box<dyn Iterator<Item = Span> + 'a>
Iterate over all matches of this expression in the document, automatically filtering out
overlapping matches, preferring the first.
fn iter_matches_in_doc<'a>( &'a self, doc: &'a Document, ) -> Box<dyn Iterator<Item = Span> + 'a>
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