pub fn stdout_buffered_block(color_choice: ColorChoice) -> StandardStream 
Expand description

Returns a block buffered writer to stdout for the given color choice.

This writer is useful when printing results to a file since it amortizes the cost of writing data. The downside of this approach is that it can increase the latency of display output when writing to a tty.

You might consider using stdout instead, which chooses the buffering strategy automatically based on whether stdout is connected to a tty.