pub fn rank<T>( items: &[T], query: &str, text: impl Fn(&T) -> String, ) -> Vec<(usize, Match)>
The items matching query, best first (ties keep their order), each with its match.
query