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
//! The error message should correctly point to problematic location in the code-block and also
//! report source identifier and the substitution.
use compose_idents::compose;

compose!(my_fn = "foo bar", {
    fn my_fn() -> u32 {
        42
    }
},);

fn main() {}