Skip to main content

token_span

Function token_span 

Source
fn token_span(text: &str, pos: usize) -> Option<Range<usize>>
Expand description

The token starting at byte pos: a quoted name, a word, a number, or one character. Past the end, the last character.