Crate macro_find_and_replace

Source
Expand description

§macro_find_and_replace

This crate provides macros to find-and-replace tokens.

For more information about tokens in general and what counts as a single token, see the TokenStream type in the proc_macro crate, which is the input and output type of procedural macros.

Macros§

replace_token
Replaces all occurences of a given single token with another single token.
replace_token_sequence
Replaces all occurences of a given sequence of tokens with another sequence of tokens.