At the moment of writing, proc_macro::TokenStream
implements core::iter::Extend
of proc_macro::TokenStream
and proc_macro::TokenTree
, i.e. Extend<TokenStream>
and Extend<TokenTree>
.
I believe that it would be reasonable to provide implementations for all of the types that can be stored in variants of proc_macro::TokenTree
, namely
Is there any reason not to provide these implementations?