[][src]Function trigram::similarity

pub fn similarity(a: &str, b: &str) -> f32

Similarity of two strings as the Jaccard similarity of their trigram sets. This function returns a value between 0.0 and 1.0, with 1.0 indicating that the strings are completely similar.