Module rustc_expand::mbe::transcribe[][src]

Structs

Enums

An iterator over the token trees in a delimited token tree ({ ... }) or a sequence ($(...)).

An accumulator over a TokenTree to be used with fold. During transcription, we need to make sure that the size of each sequence and all of its nested sequences are the same as the sizes of all the matched (nested) sequences in the macro invocation. If they don’t match, somebody has made a mistake (either the macro writer or caller).

Functions

Given a tree, make sure that all sequences have the same length as the matches for the appropriate meta-vars in interpolations.

Lookup the meta-var named ident and return the matched token tree from the invocation using the set of matches interpolations.

This can do Macro-By-Example transcription.