Skip to main content

closest

Function closest 

Source
pub fn closest<'a>(
    value: &str,
    candidates: impl IntoIterator<Item = &'a str>,
) -> Option<&'a str>
Expand description

The candidate closest to value, when it is close enough to be a likely typo.