[−][src]Crate trigram
The trigram library computes the similarity of strings, inspired by the similarity function in the Postgresql pg_trgm extension.
Structs
Match | This is the same as regex::Match. |
Matches | Iterator over fuzzy word matches. |
Functions
find_words_iter | Finds fuzzy matches of needle within haystack. A reasonable choice for threshold might be 0.3. |
similarity | 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. |