macro_rules! function_name {
    () => { ... };
}
Expand description

Return the current function name as a &'static str, e.g. "my_func".

function_name must be a macro (and not a function) to reliably use std::any::type_name::<T>() introspection.