pub fn do_match(&self, item: &SourceItem, query: &str) -> MatchResult {
        self.base_match(item, query).map(|(score, indices)| {
            let total_bonus_score: Score = self
                .bonuses
                .iter()
                .map(|b| b.bonus_for(item, score, &indices))
                .sum();
            (score + total_bonus_score, indices)
        })
    }
/// Actually performs the matching algorithm.
Actually performs the matching algorithm.
Actually performs the matching algorithm .
pub fn do_match(&self, item: &SourceItem, query: &str) -> MatchResult {
        self.base_match(item, query).map(|(score, indices)| {
            let total_bonus_score: Score = self
                .bonuses
                .iter()
                .map(|b| b.bonus_for(item, score, &indices))
                .sum();
            (score + total_bonus_score, indices)
        })
    }
pub fn do_match ( & self , item : & SourceItem , query : & str ) -> MatchResult { self . base_match ( item , query ) . map ( | ( score , indices ) | { let total_bonus_score : Score = self . bonuses . iter ( ) . map ( | b | b . bonus_for ( item , score , & indices ) ) . sum ( ) ; ( score + total_bonus_score , indices ) } ) }
Actually performs the matching algorithm.
Actually performs the matching algorithm .
&self
item
&SourceItem
query
&str