ident_str!() { /* proc-macro */ }Expand description
The main macro.
Accepts any number of name = <string literal> pairs (or using macros like concat! or
stringify!), followed by => and then the body that will be expanded (optionally surrounded
by {}).
ident_str::ident_str! {
#name = "hello_world" =>
fn #name() -> &'static str {
stringify!(#name)
}
}