Expand description
Utilities for proc macro implementation
Modulesยง
- dprint
- Calls eprintln! but only if enabled
Macrosยง
- error_
generator ๐ - impl_
deref ๐ - impl_
display ๐ - impl_
to_ ๐tokens - keyword_
general ๐ - General-purpose keyword parser
Structsยง
- Concatenated
- Type which parses as a concatenated series of
T - Discard
- Type which parses as
T, but then discards it - DocAttributes
syn::Attribute(s) (zero or more) that are known to be a#[doc ].- Error
Accumulator - Contains zero or more
syn::Error - Ident
Any - Like
syn::Identbut parses usingparse_any, accepting keywords - Macro
Export - Token
export(orpub), indicating that a macro should be exported - Synthetic
Macro Module - Synthetic
Macro Name - Name of a thing of kind
Kind - Synthetic
Macro Path - Synthetic
Macro Template - Token
Output Trimmer - For making an output TokenStream, but eliding an unnecessary tail
Enumsยง
- Grouping
- Whether an expansion should be surrounded by a
None-delimitedGroup
Traitsยง
- Make
Error - Provides
.error()onimpl Spannedand[ErrorLoc] - Synthetic
Macro Kind - Kind marker types
- ToTokens
Punct Composable - Convert to a token stream in a way that composes nicely
Functionsยง
- braced_
group - Construct a braced group from a token expansion
- delimit_
token_ group - dummy_
path - engine_
macro_ name - Return a full path to the location of
derive_deftly_engine. - group_
clone_ set_ stream - Returns a
Groupthat is likeg_inbut with streamts - group_
new_ with_ span - Returns a
Group, with a specified span - respan_
hygiene - Respan the resolution hygiene of all identifiers to span
- spans_
join - Returns a span covering the inputs
- synthetic_
macro_ ๐name_ check - synthetic_
macro_ ๐name_ macro_ name - synthetic_
macro_ ๐path_ macro_ path - synthetic_
macro_ ๐path_ parse - typepath_
add_ missing_ argument_ colons - Add any missing colons before
< >โd generic arguments
Type Aliasesยง
- Error
Generator - Error
Loc - Error location: span and what role that span plays
- Module
Name - Module
Path - Template
Name - Template
Path