pub fn substring_rank(needle: &str, haystack: &str) -> Option<u8>Expand description
Where a needle sits in a name, for a list narrowed by substring: the whole name
(0), its start (1), or inside it (2). None when the name does not contain it.
Case-insensitive; an empty needle is inside every name.