macro_rules! dprint {
($d:tt, $($arg:tt)*) => { ... };
}
Expand description
Wrapper over print!
, takes a Dahlia instance as the first argument
and uses its convert method for coloring strings.
Example
let d = Dahlia::new(Depth::Low, false);
let name = "Bob";
// The following two are equivalent
print!("{}", d.convert(format!("Hi &3{}&r!", name));
dprint!(d, "Hi &3{}&r!", name)