[−][src]Function sift4::sift4
pub fn sift4(s1: &str, s2: &str) -> i32
Sift4 calculates the sift4 distance between two strings (how many characters are different) using the sift4 "simple" algorithm with a default max_distance of 5.
Sift4
Sift4 - Super Fast and Accurate string distance algorithm. Unlike Sift3, Sift4 is not only more accurate but more closely reflects what you would get from getting the levenshtein distance between two strings.
Examples
use sift4::*; // Sift4 distance let distance = sift4("London", "Londo"); assert_eq!(1, distance);