pub struct ExactMatcher {
pub case_sensitive: bool,
}Expand description
Exact substring matcher used by exact mode.
Fields§
§case_sensitive: boolCompares characters as written instead of case-folding them.
Implementations§
Trait Implementations§
Source§impl Clone for ExactMatcher
impl Clone for ExactMatcher
Source§fn clone(&self) -> ExactMatcher
fn clone(&self) -> ExactMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExactMatcher
Source§impl Debug for ExactMatcher
impl Debug for ExactMatcher
Source§impl Default for ExactMatcher
impl Default for ExactMatcher
Source§fn default() -> ExactMatcher
fn default() -> ExactMatcher
Returns the “default value” for a type. Read more
Source§impl MatcherBackend for ExactMatcher
impl MatcherBackend for ExactMatcher
Source§fn folds_case(&self) -> bool
fn folds_case(&self) -> bool
score_exact_text compares characters through fold_case_char, which is the
mapping crate::SearchKey::case_fold_only is computed with. Its rewritten retry
keeps that promise - see [retry_with_rewritten_multi_char_lowercase].
Auto Trait Implementations§
impl Freeze for ExactMatcher
impl RefUnwindSafe for ExactMatcher
impl Send for ExactMatcher
impl Sync for ExactMatcher
impl Unpin for ExactMatcher
impl UnsafeUnpin for ExactMatcher
impl UnwindSafe for ExactMatcher
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<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