pub fn sync_run<I: Iterator<Item = SourceItem>>(
    query: &str,
    source: Source<I>,
    algo: Algo,
    match_type: MatchType,
    bonuses: Vec<Bonus>,
) -> Result<Vec<FilterResult>> {
    let matcher = Matcher::new_with_bonuses(algo, match_type, bonuses);
    let filtered = source.filter(matcher, query)?;
    let ranked = sort_initial_filtered(filtered);
    Ok(ranked)
}
/// Returns the ranked results after applying the matcher algo
/// given the query String and filtering source.
Returns the ranked results after applying the matcher algo
given the query String and filtering source.
Returns the ranked results after applying the matcher algo given the query String and filtering source .
pub fn sync_run<I: Iterator<Item = SourceItem>>(
    query: &str,
    source: Source<I>,
    algo: Algo,
    match_type: MatchType,
    bonuses: Vec<Bonus>,
) -> Result<Vec<FilterResult>> {
    let matcher = Matcher::new_with_bonuses(algo, match_type, bonuses);
    let filtered = source.filter(matcher, query)?;
    let ranked = sort_initial_filtered(filtered);
    Ok(ranked)
}
pub fn sync_run < I : Iterator < Item = SourceItem > > ( query : & str , source : Source < I > , algo : Algo , match_type : MatchType , bonuses : Vec < Bonus > , ) -> Result < Vec < FilterResult > > { let matcher = Matcher :: new_with_bonuses ( algo , match_type , bonuses ) ; let filtered = source . filter ( matcher , query ) ? ; let ranked = sort_initial_filtered ( filtered ) ; Ok ( ranked ) }
Returns the ranked results after applying the matcher algo
given the query String and filtering source.
Returns the ranked results after applying the matcher algo given the query String and filtering source .
query
&str
source
Source<I>
algo
Algo
match_type
MatchType
bonuses
Vec<Bonus>