logo
Expand description

Macro helpers.

Modules

Exposed namespace of the module.

Parented namespace of the module.

Prelude to use essentials: use my_module::prelude::*.

Protected namespace of the module.

Macros

Macro for diagnostics purpose to diagnose source code behind it and export it into a string.

Macro to export source code behind a syntax tree into a string.

Macro for diagnostics purpose to print both syntax tree and source code behind it without syntax tree.

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 a string.

Macro for diagnostics purpose to print both syntax tree and source code behind it with syntax tree.

Functions

For attribute like #[former( default = 31 )] return key default and value 31, as well as syn::Meta as the last element of result tuple.

Return the specified number of parameters of the type.

Check is the rightmost item of path refering a type is specified type.

Type Definitions

Result with syn::Error.