pub trait FuzzyMatcher: Send + Sync {
// Required method
fn fuzzy_indices(
&self,
choice: &str,
pattern: &str,
) -> Option<(i64, Vec<usize>)>;
// Provided method
fn fuzzy_match(&self, choice: &str, pattern: &str) -> Option<i64> { ... }
}
Required Methods§
Provided Methods§
Implementors§
impl FuzzyMatcher for ClangdMatcher
impl FuzzyMatcher for SkimMatcher
The V1 matcher is based on ForrestTheWoods’s post https://www.forrestthewoods.com/blog/reverse_engineering_sublime_texts_fuzzy_match/
V1 algorithm is deprecated, checkout FuzzyMatcherV2