Skip to main content

fuzzy_score

Function fuzzy_score 

Source
pub fn fuzzy_score(needle: &str, haystack: &str) -> Option<i32>
Expand description

Whether and how well needle matches haystack, higher being better.

A thin name over crate::fuzzy::best_match. Everything that ranks or highlights goes through that one function, which is what keeps the two from drifting apart.