pub struct GreedyMatcher {
pub case_sensitive: bool,
}Expand description
Greedy subsequence matcher used by the default search path.
Fields§
§case_sensitive: boolCompares characters as written instead of case-folding them.
Implementations§
Trait Implementations§
Source§impl Clone for GreedyMatcher
impl Clone for GreedyMatcher
Source§fn clone(&self) -> GreedyMatcher
fn clone(&self) -> GreedyMatcher
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 GreedyMatcher
Source§impl Debug for GreedyMatcher
impl Debug for GreedyMatcher
Source§impl Default for GreedyMatcher
impl Default for GreedyMatcher
Source§fn default() -> GreedyMatcher
fn default() -> GreedyMatcher
Returns the “default value” for a type. Read more
Source§impl MatcherBackend for GreedyMatcher
impl MatcherBackend for GreedyMatcher
Source§fn folds_case(&self) -> bool
fn folds_case(&self) -> bool
score_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 GreedyMatcher
impl RefUnwindSafe for GreedyMatcher
impl Send for GreedyMatcher
impl Sync for GreedyMatcher
impl Unpin for GreedyMatcher
impl UnsafeUnpin for GreedyMatcher
impl UnwindSafe for GreedyMatcher
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