Skip to main content

token_length_at

Function token_length_at 

Source
fn token_length_at(source: &str, offset: usize) -> usize
Expand description

Compute the byte length of the token at the given offset for span highlighting.