Module proc_macro_tools::prelude 
source · [−]Expand description
Prelude to use essentials: use my_module::prelude::*.
Re-exports
pub use super::private::_tree_print as tree_print;pub use super::private::_tree_export_str as tree_export_str;pub use super::private::_syn_err as syn_err;Modules
Macros
A type-macro that expands to the name of the Rust type representation of a given token.
Generate code only if feature::make is enabled.
Parse a set of curly braces and expose their content to subsequent parsers.
Parse a set of square brackets and expose their content to subsequent parsers.
Define a type that supports parsing and printing a given identifier as if it were a keyword.
Define a type that supports parsing and printing a multi-character symbol as if it were a punctuation token.
Variadic constructor.
Parse a set of parentheses and expose their content to subsequent parsers.
Parse the input TokenStream of a macro, triggering a compile error if the tokens fail to parse.
Quasi-quotation macro that accepts input like the quote! macro but uses
type inference to figure out a return type for those tokens.
Quasi-quotation macro that accepts input like the quote! macro but uses
type inference to figure out a return type for those tokens.
This macro is [parse_quote!] + quote_spanned!.
Type constructor to define tuple wrapping a given type.
Structs
Iterator for enumerable.
Iterator for enumerable.
Type constructor to wrap pair of the same type.
Type constructor to wrap a vector.
Type constructor to wrap two types into a tuple.
Type constructor to wrap a another type into a tuple.
Traits
Reinterpret as array.
Reinterpret as slice.
Reinterpret as tuple.
Clone as array.
Clone as tuple.
Has length and indexed access.
To analyze generics.
Constructor without arguments.
Constructor with single argument.
Constructor with two arguments.
Constructor with three arguments.
Trait to get name of an syntax element.
Implementation of trait From to vectorize into/from.
Implementation of trait Into to vectorize into/from.
Type Definitions
Input to a Syn parser function.
Result with syn::Error.
