Files
rust/src/libstd
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
..
2014-05-27 11:11:15 -07:00
2014-06-01 10:31:27 -07:00
2014-06-01 10:31:27 -07:00
2014-06-01 10:31:27 -07:00
2014-05-11 01:13:02 -07:00
2014-06-02 12:37:54 +02:00
2014-05-07 08:14:56 -07:00
2014-05-28 08:35:41 -07:00
2014-06-03 17:19:56 -07:00
2014-04-04 09:31:21 -07:00
2014-06-01 10:31:27 -07:00
2014-06-01 10:31:27 -07:00
2014-05-28 08:35:41 -07:00