Crate proc_utils

Source
Expand description

This crate provides a series of traits, macros, functions, and utilities that make writing and debugging proc macros easier

Structs§

TokenStream2
An abstract stream of tokens, or more concretely a sequence of token trees.

Traits§

PrettyPrint
Like ToPretty but prints to the console instead.
ToPretty
Bring this trait into scope for a blanket to_pretty() implementation for all syn-compatible types as well as TokenStream2.

Attribute Macros§

overwrite_with
Similar to suppress_item, but will instead entirely replace the item this attribute is attached to with whatever item is specified in the attribute arguments.
suppress_item
Completely suppresses the attached item from being emitted into the surrounding source file. If you put this attribute last, the previous attributes will still see the item.