Skip to main content

format_token_stream

Function format_token_stream 

Source
pub fn format_token_stream(tokens: TokenStream) -> String
Expand description

Format a token stream into a pretty-printed Rust source string.

ยงPanics

Panics if the generated token stream is not valid Rust syntax, which indicates a bug in the code generator.