[−][src]Function termcolor_output::colored_ln
pub fn colored_ln<W: WriteColor, F: FnOnce(&mut W) -> Result<()>>(
buf: &mut W,
func: F
) -> Result<()>
A convenience function, serving the role of writeln!
macro.
This function accepts a closure containing all necessary colored
! calls.
It will clear the writer style, run the closure, clear the writer style again
and write a newline.