Module cargo::util::edit_distance
source · Functions
- Find the closest element from
iter
matchingchoice
. Thekey
callback is used to select a&str
from the iterator to compare againstchoice
. - Version of
closest
that returns a common “suggestion” that can be tacked onto the end of an error message. - Finds the edit distance between two strings.