rust/src/libcollections
bors 0bd99f9d5c Auto merge of #35656 - Stebalien:fused, r=alexcrichton
Implement 1581 (FusedIterator)

* [ ] Implement on patterns. See https://github.com/rust-lang/rust/issues/27721#issuecomment-239638642.
* [ ] Handle OS Iterators. A bunch of iterators (`Args`, `Env`, etc.) in libstd wrap platform specific iterators. The current ones all appear to be well-behaved but can we assume that future ones will be?
* [ ] Does someone want to audit this? On first glance, all of the iterators on which I implemented `FusedIterator` appear to be well-behaved but there are a *lot* of them so a second pair of eyes would be nice.
* I haven't touched rustc internal iterators (or the internal rand) because rustc doesn't actually call `fuse()`.
* `FusedIterator` can't be implemented on `std::io::{Bytes, Chars}`.

Closes: #35602 (Tracking Issue)
Implements: rust-lang/rfcs#1581
2016-08-23 07:46:52 -07:00
..
btree Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
binary_heap.rs Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
borrow.rs Added Default trait for Cow 2016-06-23 07:05:16 +01:00
Cargo.toml rustbuild: Add support for crate tests + doctests 2016-05-12 08:52:20 -07:00
enum_set.rs Add a FusedIterator trait. 2016-08-18 12:16:29 -04:00
fmt.rs Fix links 2016-08-18 15:43:35 +12:00
lib.rs Add a FusedIterator trait. 2016-08-18 12:16:29 -04:00
linked_list.rs Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
macros.rs Use box syntax in vec! macro 2016-02-25 22:08:23 -05:00
range.rs Add doc examples for range::RangeArgument::{start,end}. 2016-08-02 09:01:46 -04:00
slice.rs Auto merge of #34762 - creativcoder:slice-ext, r=alexcrichton 2016-08-08 21:51:01 -07:00
str.rs Add a FusedIterator trait. 2016-08-18 12:16:29 -04:00
string.rs Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
vec_deque.rs Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
vec.rs Add a FusedIterator trait. 2016-08-18 12:16:29 -04:00