Version 0.2.0
See all python_comm_macros's items
Create a local variable func = “xxx” in fn xxx()
use python_comm_macros::auto_func_name; #[auto_func_name] fn test_name() -> String { return String::from(__func__); } assert_eq!(test_name(), "test_name");
function with auto_func_name2 attribute, //! is not allowed internal!