func_name

Macro func_name 

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

Return the name of the callee.

Example:


fn foo() -> String {
    func_name!()
}
assert_eq!("foo", foo());