pub struct FuzzyQuery { /* private fields */ }Expand description
A reusable fuzzy query that parses the search pattern and allocates its
Matcher and scratch buffer exactly once, then scores many candidates.
The one-shot helpers fuzzy_score and fuzzy_match rebuild all of
this state on every call. When scoring a collection (command palettes,
history pickers, file lists) prefer building a single FuzzyQuery before
the loop and reusing it per candidate to avoid the per-item pattern parse
and matcher allocation.
Implementations§
Auto Trait Implementations§
impl Freeze for FuzzyQuery
impl RefUnwindSafe for FuzzyQuery
impl Send for FuzzyQuery
impl Sync for FuzzyQuery
impl Unpin for FuzzyQuery
impl UnsafeUnpin for FuzzyQuery
impl UnwindSafe for FuzzyQuery
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