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 Forget for FuzzyQuery
impl Freeze for FuzzyQuery
impl Move for FuzzyQuery
impl RefUnwindSafe for FuzzyQuerywhere
MatrixSlab: RefUnwindSafe,
impl Send for FuzzyQuery
impl Sync for FuzzyQuery
impl Unpin for FuzzyQuery
impl UnsafeUnpin for FuzzyQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Atom>: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
PhantomData<char>: UnsafeUnpin,
impl UnwindSafe for FuzzyQuerywhere
RawVecInner: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<[char]>: UnwindSafe,
&'static [u8]: UnwindSafe,
MatrixSlab: UnwindSafe,
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