Skip to main content

match_positions

Function match_positions 

Source
pub fn match_positions(query: &str, name: &str) -> Vec<usize>
Expand description

The char indices in name that query matched, from the best alignment — for highlighting what matched. Empty if query isn’t a subsequence.