Skip to main content

token_at

Function token_at 

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

The token starting at byte pos: a 'quoted name', a word, or one character. At or past the end, the last character.