macro_rules! format_if_alloc {
($default:expr, $fmt:tt$(, $($arg:expr),+)?) => { ... };
}Expand description
Heap-allocated custom formatting if alloc is enabled; otherwise, use the first, non-heap argument.
macro_rules! format_if_alloc {
($default:expr, $fmt:tt$(, $($arg:expr),+)?) => { ... };
}Heap-allocated custom formatting if alloc is enabled; otherwise, use the first, non-heap argument.