rust/src/libcollections
Aaron Turon 1bde6e3fcb Rename Iterator::len to count
This commit carries out the request from issue #14678:

> The method `Iterator::len()` is surprising, as all the other uses of
> `len()` do not consume the value. `len()` would make more sense to be
> called `count()`, but that would collide with the current
> `Iterator::count(|T| -> bool) -> unit` method. That method, however, is
> a bit redundant, and can be easily replaced with
> `iter.filter(|x| x < 5).count()`.
> After this change, we could then define the `len()` method
> on `iter::ExactSize`.

Closes #14678.

[breaking-change]
2014-06-06 19:51:31 -07:00
..
hash Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
bitv.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
btree.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
deque.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
dlist.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
enum_set.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
lib.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
macros.rs std: Recreate a collections module 2014-06-05 13:55:10 -07:00
priority_queue.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
ringbuf.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
slice.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
smallintmap.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
str.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
string.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
treemap.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
trie.rs Fallout from the libcollections movement 2014-06-05 13:55:11 -07:00
unicode.rs std: Recreate a collections module 2014-06-05 13:55:10 -07:00
vec.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00