Attribute Macro interpolate_name::interpolate_name

source ·
#[interpolate_name]
Expand description

Rename the decorated function by appending _ and the provided specifier.

use interpolate_name::interpolate_name;

#[interpolate_name(spec)]
fn foo() {}

produces:

fn foo_spec() {}