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

Replaces in string literal

Examples

use place_macro::str_replace;

let s = str_replace!("hello runtime replace", "runtime", "compile-time");
assert_eq!(s, "hello compile-time replace");