rust/src/libcollections/btree
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
..
map.rs Auto merge of #35656 - Stebalien:fused, r=alexcrichton 2016-08-23 07:46:52 -07:00
mod.rs Rewrite BTreeMap to use parent pointers. 2016-01-16 21:40:03 -06:00
node.rs Implement split_off for BTreeMap and BTreeSet (RFC 509) 2016-06-01 10:02:25 +03:00
search.rs Rewrite BTreeMap to use parent pointers. 2016-01-16 21:40:03 -06:00
set.rs Add a FusedIterator trait. 2016-08-18 12:16:29 -04:00