macro_rules! token_set_ratio {
    ($str1:expr, $str2:expr) => { ... };
}
Expand description

Finds the intersection of both strings and calculates the similarity of strings.

Example

let str1 = "There are a lot of differences between Rust and C++";
let str2 = "differences in Rust C++";
let similiarity = fuzzy_match_flex::token_set_ratio!(str1, str2);

assert_eq!(similiarity, 0.9230769);