identifier!() { /* proc-macro */ }
Expand description

Creates a identifier in the same way as the string macro creates string literals.

Example

use place_macro::identifier;

let my = 5;
let var = 10;
let myvar = 1;
let n = identifier!(my + var);
assert_eq!(n, myvar);