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

Structs

Marker

Enums

Frame

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

LockstepIterSize

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

lockstep_iter_size

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

lookup_cur_matched

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

transcribe

This can do Macro-By-Example transcription.