Macro place_macro::string

source ·
string!() { /* proc-macro */ }
Expand description

Converts the input to string literal, literals are interpreted as their values, punctuation and brackets are ignored and the rest is stringified.

Examples

use place_macro::string;

let s = string!("hello" + , ", " {(agent)} ' ' 0x2F);
assert_eq!(s, "hello, agent 47");