Module fragment::matching [] [src]

Structs

Match

Score-qualified type returned as a search result.

Traits

AsStr

Borrowed string slice representation used for matching.

Functions

find

Given a set, find compares its elements and returns a set of Match objects ordered by increasing score values (first values are closest matches). If the result set is larger than max_results, the set is reduced to that size.

similarity

Looks for space delimited terms in query that occur in data, returning a score between 0 and 1, based on the percentage of letters covered in data. Queries with terms that do not exist in data return a score of 0.