find_closest_match

Function find_closest_match 

Source
fn find_closest_match(candidates: Vec<String>, target: &str) -> Option<String>
Expand description

Find the closest matching string to the target string in the candidates list, using edit distance(case insensitive) Input candidates must not be empty otherwise an error is returned.