rust/src/libstd/num
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
..
f32.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
f64.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
float_macros.rs Convert most code to new inner attribute syntax. 2014-03-28 17:12:21 -07:00
i8.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
i16.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
i32.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
i64.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
int.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
int_macros.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
mod.rs std: Rename {Eq,Ord} to Partial{Eq,Ord} 2014-05-30 15:52:24 -07:00
strconv.rs Rename Iterator::len to count 2014-06-06 19:51:31 -07:00
u8.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
u16.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
u32.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
u64.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
uint.rs rustdoc: Create anchor pages for primitive types 2014-05-31 21:59:50 -07:00
uint_macros.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00