// here how you can create function using macro macro_rules! create_fn { ($name: ident) => { fn $name() { println!("Called {:?}()", stringify!($name)); } }; } fn main() { println!("Hello, world!"); another_function(); } fn another_function() { println!("Another function."); }fn five() -> i32 { 5 } fn main() { let x = five(); println!("The value of x is: {x}"); } The value of x is: 5