macro_rules! function {
() => { ... };
}Expand description
Expands to the current function’s name similar to the venerable file! or line!
References
Examples
use rivia::prelude::*;
fn my_func() -> &'static str {
function!()
}
assert_eq!(my_func(), "my_func");