Answers for "get function name rust"

0

get function name rust

use ::function_name::named;

fn main() {
	let func_name = function_name!();
	println!("{}",func_name);
}
Posted by: Guest on May-07-2022

Browse Popular Code Answers by Language