Skip to main content

rank

Function rank 

Source
pub fn rank<T>(
    items: &[T],
    query: &str,
    text: impl Fn(&T) -> String,
) -> Vec<(usize, Match)>
Expand description

The items matching query, best first (ties keep their order), each with its match.