Function strsim::damerau_levenshtein
[−]
[src]
pub fn damerau_levenshtein(a: &str, b: &str) -> usize
Same as Levenshtein but allows for adjacent transpositions.
use strsim::damerau_levenshtein; assert_eq!(3, damerau_levenshtein("damerau", "aderua"));