Skip to main content

char_positions

Function char_positions 

Source
pub(crate) fn char_positions(line: &str, target: char) -> Vec<usize>
Expand description

Return the byte offsets of every occurrence of target in line, skipping string and char literals.