macro_rules! iformat {
($($t:tt)*) => { ... };
}Expand description
Formats a given string with indentation based on the current call depth.
This macro works similarly to Rust’s built-in format! macro,
but prepends an indentation to the formatted string. The level of
indentation is determined by the current call depth in the stack.
§Example
use iprint::iformat;
fn my_function() {
let msg = iformat!("This will be indented based on call depth.");
println!("{}", msg);
}