macro_rules! custom_println {
($prefix:literal, cyan, $($arg:tt)*) => { ... };
($prefix:literal, green, $($arg:tt)*) => { ... };
($prefix:literal, yellow, $($arg:tt)*) => { ... };
($prefix:literal, red, $($arg:tt)*) => { ... };
}
Expand description
Allows for custom print messages with a specified prefix and color.
usage: custom_println!("prefix", color, "message")
where color is one of cyan
, green
,
yellow
, or red
. The prefix
will be shown in bold in the specified color, followed by
a colon and the message.