pub struct OrderlessDisplayMatcher;Expand description
match:orderless-display. FuzzyDisplayMatcher with the query
read as a set of whitespace-separated components rather than one
token — see crate::orderless for the syntax and scoring.
Matches display for the same reason FuzzyDisplayMatcher does:
picker rows carry a routing payload in text that the user never
sees and must not be able to match against.
The single-component case delegates to crate::fuzzy_match
verbatim, so swapping a picker from FuzzyDisplayMatcher to this
one changes nothing until the user types a space.
Trait Implementations§
Source§impl CandidateMatcher for OrderlessDisplayMatcher
impl CandidateMatcher for OrderlessDisplayMatcher
Source§fn matches(
&self,
query: &str,
candidate: &RawCandidate,
) -> Option<(MatchScore, Vec<Range<usize>>)>
fn matches( &self, query: &str, candidate: &RawCandidate, ) -> Option<(MatchScore, Vec<Range<usize>>)>
Score the candidate against
query. None means “no match”
(filter out). The byte ranges record which parts of
candidate.text the matcher consumed – the renderer paints
these with the match-face style.Auto Trait Implementations§
impl Freeze for OrderlessDisplayMatcher
impl RefUnwindSafe for OrderlessDisplayMatcher
impl Send for OrderlessDisplayMatcher
impl Sync for OrderlessDisplayMatcher
impl Unpin for OrderlessDisplayMatcher
impl UnsafeUnpin for OrderlessDisplayMatcher
impl UnwindSafe for OrderlessDisplayMatcher
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