Function strsim::osa_distance [−][src]
Expand description
Like Levenshtein but allows for adjacent transpositions. Each substring can only be edited once.
use strsim::osa_distance;
assert_eq!(3, osa_distance("ab", "bca"));
Like Levenshtein but allows for adjacent transpositions. Each substring can only be edited once.
use strsim::osa_distance;
assert_eq!(3, osa_distance("ab", "bca"));