map_tokens

Function map_tokens 

Source
pub fn map_tokens<F: Fn(TokenTree) -> TokenTree>(
    input: TokenStream,
    f: F,
) -> TokenStream
Expand description

Maps all the tokens in the stream using a given function.