[][src]Trait fuzzy_matcher::FuzzyMatcher

pub trait FuzzyMatcher: Send + Sync {
    fn fuzzy_indices(
        &self,
        choice: &str,
        pattern: &str
    ) -> Option<(i64, Vec<usize>)>; fn fuzzy_match(&self, choice: &str, pattern: &str) -> Option<i64> { ... } }

Required methods

fn fuzzy_indices(
    &self,
    choice: &str,
    pattern: &str
) -> Option<(i64, Vec<usize>)>

fuzzy match choice with pattern, and return the score & matched indices of characters

Loading content...

Provided methods

fn fuzzy_match(&self, choice: &str, pattern: &str) -> Option<i64>

fuzzy match choice with pattern, and return the score of matching

Loading content...

Implementors

impl FuzzyMatcher for ClangdMatcher[src]

impl FuzzyMatcher for SkimMatcher[src]

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

impl FuzzyMatcher for SkimMatcherV2[src]

Loading content...