nearest_matches

Function nearest_matches 

Source
pub fn nearest_matches(
    input: &str,
    candidates: &[String],
    max: usize,
) -> Vec<String>
Expand description

Return up to max candidates closest to input.

Matches are sorted by Levenshtein distance and are stable on ties.