Function lexx::flatten_token_tree [] [src]

pub fn flatten_token_tree(v: &Vec<TokenTree>) -> Vec<Token>

Flatten TokenTree

I use this functionality it is included in the Parser object. But this free function does the same task. This is a slightly memory intensive process as internal vectors get generated fairly adhoc.