rust/src/libstd/io
bors 0c74911f87 auto merge of #14568 : erickt/rust/slice-update, r=alexcrichton
This PR adds two features to make it possible to transform an `Iterator<u8>` into a `Reader`. The first patch adds a method to mutable slices that allows it to be updated with an `Iterator<T>` without paying for the bounds cost. The second adds a Iterator adaptor, `IterReader`, to provide that `Reader` interface.

I had two questions. First, are these named the right things? Second, should `IterReader` instead wrap an `Iterator<Result<u8, E>>`? This would allow you to `IterReader::new(rdr.bytes())`, which could be useful if you want to apply some iterator transformations on a reader while still exporting the Reader interface, but I'd expect there'd be a lot of overhead annotating each byte with an error result.
2014-06-05 00:51:48 -07:00
..
net std: Drop Total from Total{Eq,Ord} 2014-06-01 10:31:27 -07:00
buffered.rs std: Rename {Eq,Ord} to Partial{Eq,Ord} 2014-05-30 15:52:24 -07:00
comm_adapters.rs Replace most ~exprs with 'box'. #11779 2014-05-02 23:00:58 -07:00
extensions.rs io: Add .read_at_least() to Reader 2014-05-13 18:45:20 -07:00
fs.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
mem.rs std: Rename strbuf operations to string 2014-05-27 12:59:31 -07:00
mod.rs std: Rename {Eq,Ord} to Partial{Eq,Ord} 2014-05-30 15:52:24 -07:00
pipe.rs librustc: Remove ~EXPR, ~TYPE, and ~PAT from the language, except 2014-05-06 23:12:54 -07:00
process.rs std: Drop Total from Total{Eq,Ord} 2014-06-01 10:31:27 -07:00
result.rs De-~[] Mem{Reader,Writer} 2014-04-06 15:40:01 -07:00
signal.rs std: Rename {Eq,Ord} to Partial{Eq,Ord} 2014-05-30 15:52:24 -07:00
stdio.rs std: Rename strbuf operations to string 2014-05-27 12:59:31 -07:00
tempfile.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
test.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
timer.rs std: Remove generics from Option::expect 2014-06-03 17:19:56 -07:00
util.rs std: add IterReader to adapt iterators into readers 2014-06-02 20:42:41 -07:00