Expand description
This crate provides a series of traits, macros, functions, and utilities that make writing and debugging proc macros easier
Structs§
- Token
Stream2 - An abstract stream of tokens, or more concretely a sequence of token trees.
Traits§
- Pretty
Print - Like
ToPretty
but prints to the console instead. - ToPretty
- Bring this trait into scope for a blanket
to_pretty()
implementation for allsyn
-compatible types as well asTokenStream2
.
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.