Module cargo::util::lev_distance
source · Functions
- Find the closest element from
itermatchingchoice. Thekeycallback is used to select a&strfrom the iterator to compare againstchoice. - Version of
closestthat returns a common “suggestion” that can be tacked onto the end of an error message.