Skip to main content

match_quality

Function match_quality 

Source
pub fn match_quality(name: &str, query: &str) -> MatchQuality
Expand description

Classify how query matches name, case-insensitively.

Both sides are trimmed and lowercased; an empty query matches everything equally (Prefix), which leaves the input order untouched.