Skip to main content

find_closest_match

Function find_closest_match 

Source
pub fn find_closest_match<'a>(s: &str, options: &[&'a str]) -> Option<&'a str>
Expand description

Attempts to find the closest matching string from the list. Returns None if the edit distance is too large.