diff options
| author | Josh Stone <jistone@redhat.com> | 2017-06-06 15:42:55 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2017-06-06 15:42:55 -0700 |
| commit | 9debe91675222782e08fbb15bb6359a05bf85131 (patch) | |
| tree | 3bc0a130617f2cc0675f47b1647da77e00738412 /src/rustllvm/RustWrapper.cpp | |
| parent | a032cb89c5d9b436c1c57f8a6d5961d898f5c2b6 (diff) | |
| download | rust-9debe91675222782e08fbb15bb6359a05bf85131.tar.gz rust-9debe91675222782e08fbb15bb6359a05bf85131.zip | |
Add conversions from File and Child* handles to Stdio
`Stdio` now implements `From<ChildStdin>`, `From<ChildStdout>`, `From<ChildStderr>`, and `From<File>`. The `Command::stdin`/`stdout`/`stderr` methods now take any type that implements `Into<Stdio>`. This makes it much easier to write shell-like command chains, piping to one another and redirecting to and from files. Otherwise one would need to use the unsafe and OS-specific `from_raw_fd` or `from_raw_handle`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
