macro_rules! brackets {
($msg:expr) => { ... };
($level:expr, $bracket_brightness:expr) => { ... };
}Expand description
Wraps a string on either side with square brackets. The brightness of the brackets can be set with the second argument (0-2).
( "s" , 0 | 1 | 2 | _ ) -> "[s]"
ยงExamples
use owo_colors::OwoColorize;
use farve::brackets;
let i0 = brackets!("INFO");