token_src

Function token_src 

Source
pub fn token_src<'src>(token: &SyntaxToken, source: &'src str) -> &'src str
Expand description

Extracts token text with source lifetime.

Use this instead of token.text() when you need &'src str.