macro_rules! function {
() => { ... };
}Expand description
Expands to a string literal of the current function’s name similar to the
venerable file! or line! https://github.com/rust-lang/rfcs/pull/1719.
§Examples
use fungus::prelude::*;
fn my_func() -> &'static str {
function!()
}
assert_eq!(my_func(), "my_func");