Skip to main content

nearest

Function nearest 

pub fn nearest<'a>(name: &str, candidates: &[&'a str]) -> Option<&'a str>
Expand description

The registered name closest to name by edit distance, if close enough to be a typo (at most a third of its length, and at most 3).