rust/src/libcoretest
bors 3a25b65c1f Auto merge of #37315 - bluss:fold-more, r=alexcrichton
Implement Iterator::fold for .chain(), .cloned(), .map() and the VecDeque iterators.

Chain can do something interesting here where it passes on the fold
into its inner iterators.

The lets the underlying iterator's custom fold() be used, and skips the
regular chain logic in next.

Also implement .fold() specifically for .map() and .cloned() so that any
inner fold improvements are available through map and cloned.

The same way, a VecDeque iterator fold can be turned into two slice folds.

These changes lend the power of the slice iterator's loop codegen to
VecDeque, and to chains of slice iterators, and so on.
It's an improvement for .sum() and .product(), and other uses of fold.
2016-10-26 11:43:32 -07:00
..
fmt std: Clean out deprecated APIs 2016-03-12 12:31:13 -08:00
hash Small improvement to SipHasher 2016-10-25 20:33:03 +02:00
num Call emcc with ERROR_ON_UNDEFINED_SYMBOLS 2016-09-30 14:02:57 -07:00
any.rs Implement Any for unsized types 2016-01-14 23:02:32 -08:00
array.rs Implement FixedSizeArray for all fixed size arrays 2015-08-31 10:55:39 +02:00
atomic.rs core: Shuffle around float parsing 2015-08-17 19:35:52 -07:00
cell.rs std: Stabilize APIs for the 1.12 release 2016-08-19 11:59:56 -07:00
char.rs [breaking-change] std: change encode_utf{8,16}() to take a buffer and return a slice 2016-09-28 09:03:30 +02:00
clone.rs Add unused modules to libcoretest 2015-10-16 21:15:23 +02:00
cmp.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
intrinsics.rs Add unused modules to libcoretest 2015-10-16 21:15:23 +02:00
iter.rs iter: Implement .fold() for .chain() 2016-10-25 22:06:39 +02:00
lib.rs Auto merge of #35856 - phimuemue:master, r=brson 2016-09-02 21:02:41 -07:00
mem.rs Support 16-bit pointers as well as i/usize 2016-05-19 13:55:13 -04:00
nonzero.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
ops.rs Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
option.rs cleanup int suffixes in libcoretest 2016-03-11 08:42:56 +05:30
ptr.rs Fix the test_variadic_ptr fn on printf-less sys 2016-08-29 22:58:05 +03:00
result.rs core: Implement IntoIterator for Option and Result references 2015-08-27 18:48:41 +02:00
slice.rs Avoid bounds check for slice binary search 2016-01-22 15:08:27 -02:00
str.rs Moved coretest::str tests into collectiontest::str 2015-04-05 18:52:58 +02:00
tuple.rs Deprecating i/u suffixes in libcoretest 2015-02-10 22:56:31 +00:00