Skip to main content

buf_stdout

Function buf_stdout 

Source
pub fn buf_stdout() -> BufStdout
Available on crate features print_ext and std only.
Expand description

Creates a buffered, locked stdout writer.

Prefer this in tight loops or when emitting lots of output, where repeated println! calls would otherwise lock and write frequently.