Closed
Description
I'm not sure if this requires a RFC, but we have the StdIo
s within the Command
, and it seems prudent not to waste them when it is dropped. So how about a function to decompose the Command
into its IOs?
The following code would work (in std::process::Command
):
fn into_stdio(self) -> (Option<StdIo>, Option<StdIo>, Option<StdIo>) {
let Command { stdin: in, stdout: out, stderr: err, .. } = self;
(in, out, err)
}