compose-idents 0.3.0

A Rust macro for generating new identifiers (names of variables, functions, traits, etc) by concatenating one or more arbitrary parts and applying other manipulations.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Utilities for testing substitution.

/// Makes a substitution map.
macro_rules! make_substitutions {
    ($($key:expr => $value:expr),* $(,)*) => {
        {
            HashMap::from([
                $(($key.to_string(), Rc::new($value)))*
            ])
        }
    }
}
pub(super) use make_substitutions;