pub fn closest_match<'a>(
query: &str,
candidates: impl IntoIterator<Item = &'a str>,
) -> Option<&'a str>Expand description
Find the closest match in a list of candidate names, using
Levenshtein edit distance. Returns None when no candidate
is within distance 3, since beyond that the suggestion is
noise.