Function proc_macro_faithful_display::faithful_display
source · pub fn faithful_display(stream: &TokenStream) -> impl Display + '_
Expand description
Create a Display
object out of a TokenStream
that respects as closely as possible its
formatting.
Disclaimer: because this function takes a reference and because
TokenStream
– at the time of writing – doesn’t support reference-based iteration, a complete deep clone of the token tree has to be performed prior to displaying it.