rust/src/libcore/tests
kennytm bebd2fbfc8
Rollup merge of #48156 - Centril:feature/iterator_repeat_with, r=alexcrichton
Add std/core::iter::repeat_with

Adds an iterator primitive `repeat_with` which is the "lazy" version of `repeat` but also more flexible since you can build up state with the `FnMut`. The design is mostly taken from `repeat`.

r? @rust-lang/libs
cc @withoutboats, @scottmcm
2018-02-14 18:25:22 +08:00
..
fmt Rollup merge of #46831 - Diggsey:float-debug-fmt, r=dtolnay 2017-12-20 21:21:59 +08:00
hash Implement Hash for raw pointers to unsized types 2017-10-25 11:07:13 -07:00
num Enable num tests on wasm 2018-01-11 21:26:53 +00:00
any.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
array.rs Try to fix array TryFrom tests 2017-09-24 14:54:04 -04:00
atomic.rs Add fetch_nand. 2018-02-09 16:04:41 -07:00
cell.rs Implement RefCell::replace and RefCell::swap 2017-07-31 21:19:09 +00:00
char.rs Remove test case that assumes FromStr provides TryFrom<&'a str>. 2017-08-30 04:43:09 -07:00
clone.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
cmp.rs Add max and min default fns to Ord trait 2017-06-06 22:42:48 -04:00
intrinsics.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
iter.rs Rollup merge of #48156 - Centril:feature/iterator_repeat_with, r=alexcrichton 2018-02-14 18:25:22 +08:00
lib.rs Rollup merge of #48156 - Centril:feature/iterator_repeat_with, r=alexcrichton 2018-02-14 18:25:22 +08:00
mem.rs core: Ensure std::mem::Discriminant is Send + Sync 2017-10-08 01:09:55 +02:00
nonzero.rs Rename {NonZero,Shared,Unique}::new to new_unchecked 2017-07-22 20:38:16 +02:00
ops.rs Fix tidy 2018-02-09 02:11:04 -08:00
option.rs Rename option::Missing to NoneError 2017-09-27 17:57:07 -04:00
pattern.rs Regression tests for #47175 2018-01-06 11:17:12 +05:30
ptr.rs Mark Unique as perma-unstable, with the feature renamed to ptr_internals. 2018-01-20 11:09:23 +01:00
result.rs Rename option::Missing to NoneError 2017-09-27 17:57:07 -04:00
slice.rs Rollup merge of #47333 - arthurprs:iter-position-bounds-check, r=dtolnay 2018-01-18 01:57:13 +08:00
str.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
tuple.rs Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00