Crate proc_macro_utils
source ·Expand description
Some useful functions on proc_macro and proc_macro2 types
E.g. pushing tokens onto TokenStream and testing
for specific punctuation on TokenTree and Punct
Macros
- Asserts that the
lhsmatches the tokens wrapped in braces on therhs.
Structs
- Wrapper for
TokenStream::into_iterallowing not only to iterate on tokens but also to parse simple structures like types or expressions, though it does not make any claims about their correctness.
Traits
- Trait to test for delimiters of groups
- Generic extensions for
proc_macro2::TokenStream - Generic extensions for
proc_macro::TokenStream - Generic extensions for
proc_macro2::TokenTree - Generic extensions for
proc_macro::TokenTree - Trait to test for punctuation