diff options
| author | bors <bors@rust-lang.org> | 2014-02-14 23:46:29 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-14 23:46:29 -0800 |
| commit | c9f13b47febb81ef339a15adf0f6ad7a2265c46d (patch) | |
| tree | e8f17e3a7706075264090d1af31d1f8a741c2a4d /src/rustllvm/PassWrapper.cpp | |
| parent | 3496e93d13590140242f862c905dc2d591d2e2ea (diff) | |
| parent | 4c233d1c73edae4fb2609100528d3c952723453f (diff) | |
| download | rust-c9f13b47febb81ef339a15adf0f6ad7a2265c46d.tar.gz rust-c9f13b47febb81ef339a15adf0f6ad7a2265c46d.zip | |
auto merge of #12230 : DaGenix/rust/io-decorator-changes, r=sfackler
I created RefReader and RefWriter structs that wrap a mutable reference to a Reader or Writer value. This works exactly like the ByRef struct in the iter module and allows passing a reference to a Reader or Writer to function expecting a Reader or Writer by value with the caller retaining ownership to the original value. I also modified LimitReader to take the wrapped Reader by value instead of by reference. @sfackler
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
