pub struct FuzzyDisplayMatcher;Expand description
match:fuzzy-display. Same 5-tier algorithm as FuzzyMatcher
but matches against candidate.display instead of
candidate.text.
Slice 3c.unify.picker-via-pipeline: picker rows have
text carrying a routing payload (e.g.
"<server_id>\t<workspace>") the user never sees, while
display is the row’s user-visible label. The picker has to
match on display. This split (cmdline matches text, picker
matches display) is now first-class: two matcher impls,
same underlying fuzzy_match algorithm.
Trait Implementations§
Source§impl CandidateMatcher for FuzzyDisplayMatcher
impl CandidateMatcher for FuzzyDisplayMatcher
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 FuzzyDisplayMatcher
impl RefUnwindSafe for FuzzyDisplayMatcher
impl Send for FuzzyDisplayMatcher
impl Sync for FuzzyDisplayMatcher
impl Unpin for FuzzyDisplayMatcher
impl UnsafeUnpin for FuzzyDisplayMatcher
impl UnwindSafe for FuzzyDisplayMatcher
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