Macro proc_macro_hack::proc_macro_expr_impl [−][src]
Implement a hacky procedural macro that expands to an expression.
ⓘ
proc_macro_expr_impl! { /// Add one to an expression. pub fn add_one_impl(input: &str) -> String { format!("1 + {}", input) } }