color_print_proc_macro

Macro cformat

Source
cformat!() { /* proc-macro */ }
Expand description

The same as format!(), but parses color tags.

ยงExample
let s: String = cformat!("A <g>green</> word, {}", "placeholders are allowed");
assert_eq!(s, "A \u{1b}[32mgreen\u{1b}[39m word, placeholders are allowed");