nearest

Function nearest 

Source
fn nearest(text: &str) -> Option<u32>
Expand description

The name that shares the longest run of leading characters with what was typed, when that run is long enough to be a typo rather than a coincidence.