token_src

Function token_src 

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

Extracts token text with source lifetime.

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