bunt icon indicating copy to clipboard operation
bunt copied to clipboard

Pass style as argument to be able to calculate it at runtime

Open LukasKalbertodt opened this issue 4 years ago • 0 comments

From https://github.com/LukasKalbertodt/bunt/issues/1#issuecomment-812863115:

Could the color and other styles be specified by argument? For example,

bunt::println!("{$*}error:{/$}", Color::Red, ty);

In that case I could calculate the color at runtime.

LukasKalbertodt avatar Apr 11 '21 11:04 LukasKalbertodt