Skip to main content

suggest

Function suggest 

Source
pub fn suggest<'a>(
    name: &str,
    candidates: impl Iterator<Item = &'a str>,
) -> Option<String>
Expand description

The closest candidate to name, if it is close enough. Ties go to the alphabetically first. The candidate closest to name, if one is close enough to be a likely typo.