]> git.lizzy.rs Git - rust.git/commit
Final alpha stabilization of core::iter
authorAaron Turon <aturon@mozilla.com>
Sun, 4 Jan 2015 16:43:27 +0000 (08:43 -0800)
committerAaron Turon <aturon@mozilla.com>
Mon, 5 Jan 2015 22:01:05 +0000 (14:01 -0800)
commit64ec47c9d2a75c8150d153450e7e7b7db60208dc
tree3de471cbed40747b7217788e4f3967ebd1841fcd
parent03268bbf35d3ff2350d987fe7b60375839abdf2e
Final alpha stabilization of core::iter

This commit wraps up the adjustments to the iterator for recent language
changes.

* Moves `rposition` from `ExactSizeIterator` to `IteratorExt` using a
  `where` clause, thereby removing the `ExactSizeIterator:
  DoubleEndedIterator` constraint.

* Merges `MutableDoubleEndedIterator` into `IteratorExt`, renaming
  `reverse_` to `reverse_in_place`.

* Merges `IteratorOrdExt`, `IteratorCloneExt` and `CloneIteratorExt`
  into `IteratorExt` using `where` clauses.

Marks as `#[stable]`:

* the `iter` module itself
* `FromIterator`, `Extend`
* `Iterator`, `IteratorExt`
* `map`
* `filter`
* `filter_map`
* `skip_while`
* `take_while`
* `scan`
* `flat_map`
* `inspect`
* `collect`
* `fold`
* `all`
* `any`
* `find`
* `rposition`
* `max`, `min`
* Various adapter types related to the above methods

Because of the trait merging, this is a:

[breaking-change]
src/libcore/iter.rs