attempt_print_to_stderrUsed by impl Termination for Result to print error after main or a test
has returned. Should avoid panicking, although we can't help it if one of
the Display impls inside args decides to.
set_output_captureSets the thread-local output capture buffer and returns the old one.
stderrConstructs a new handle to the standard error of the current process.
stderr_rawConstructs a new raw handle to the standard error stream of this process.
stdinConstructs a new handle to the standard input of the current process.
stdin_rawConstructs a new raw handle to the standard input of this process.
stdoutConstructs a new handle to the standard output of the current process.
stdout_rawConstructs a new raw handle to the standard output stream of this process.
try_set_output_captureTries to set the thread-local output capture buffer and returns the old one.
This may fail once thread-local destructors are called. It's used in panic
handling instead of set_output_capture.