Crate python_comm_macros[][src]

Expand description

Create a local variable func = “xxx” in fn xxx()

Usage

use python_comm_macros::auto_func_name;

#[auto_func_name]
fn test_name() -> String {
  return String::from(__func__);
}

assert_eq!(test_name(), "test_name");

Bug

function with auto_func_name2 attribute, //! is not allowed internal!

Attribute Macros

Create a local variable func = “xxx” in fn xxx()