Skip to main content

stdout

Function stdout 

Source
pub fn stdout() -> Stdout 
Expand description

Return a handle to inherited standard output.

Every call returns a cheap Copy handle referencing the same process-wide stdout state. Writes through this handle are unbuffered except for the platform console transcoding described in the module-level documentation.

§Returns

A Stdout handle.

§Errors and panics

This function does not fail or intentionally panic. I/O errors are reported by the handle’s Write implementation.