Skip to main content

score

Function score 

Source
pub fn score(query: &str, text: &str) -> Option<Match>
Expand description

Matches query (spaces ignored, case-insensitive) in text; none when its characters are not all there in order. An empty query matches everything with a score of 0.