Function strsim::levenshtein [−][src]
pub fn levenshtein(a: &str, b: &str) -> usize
Calculates the minimum number of insertions, deletions, and substitutions required to change one string into the other.
use strsim::levenshtein; assert_eq!(3, levenshtein("kitten", "sitting"));