Crate proc_macro_tools
source · [−]Expand description
Tools for writing procedural macroses.
Re-exports
pub use _tree_print as tree_print;
pub use _tree_export_str as tree_export_str;
pub use _syn_err as syn_err;
pub use internal::ContainerKind;
pub use internal::type_container_kind;
pub use internal::type_optional_container_kind;
pub use internal::type_rightmost;
pub use internal::type_parameters;
pub use internal::attr_pair_single;
Modules
Internals.
Macros
Macro to generate syn error either with span of a syntax tree element or with default one proc_macro2::Span::call_site()
.
Macro for diagnostics purpose to export both syntax tree and source code behind it into string.
Macro for diagnostics purpose to print both syntax tree and source code behind it.