[−][src]Macro bunt::writeln
writeln!() { /* proc-macro */ }
Writes formatted data with newline to a termcolor::WriteColor
target.
Like write!
, but adds a newline (\n
) at the end.
use bunt::termcolor::{ColorChoice, StandardStream}; // Printing to stderr, just to show something `println` can't do. let mut stderr = StandardStream::stderr(ColorChoice::Auto); let _ = bunt::writeln!(stderr, "{$red}bad error!{/$}");
See crate-level docs for more information.