rust/src/liballoc/tests
kennytm 5d0474ad73
Rollup merge of #47126 - sdroege:exact-chunks, r=bluss
Add slice::ExactChunks and ::ExactChunksMut iterators

These guarantee that always the requested slice size will be returned
and any leftoever elements at the end will be ignored. It allows llvm to
get rid of bounds checks in the code using the iterator.

This is inspired by the same iterators provided by ndarray.

Fixes https://github.com/rust-lang/rust/issues/47115

I'll add unit tests for all this if the general idea and behaviour makes sense for everybody.
Also see https://github.com/rust-lang/rust/issues/47115#issuecomment-354715511 for an example what this improves.
2018-01-15 18:49:31 +08:00
..
btree Add support for ..= syntax 2017-09-22 22:05:18 +02:00
binary_heap.rs Merge crate collections into alloc 2017-06-13 23:37:34 -07:00
cow_str.rs Add trailing newlines to files which have no trailing newlines. 2017-12-30 15:50:52 +08:00
fmt.rs Merge crate collections into alloc 2017-06-13 23:37:34 -07:00
heap.rs alloc_jemalloc: don’t assume MIN_ALIGN for small sizes 2017-11-20 16:22:17 +01:00
lib.rs Add unit tests for exact_chunks/exact_chunks_mut 2018-01-13 12:19:01 +02:00
linked_list.rs Implement LinkedList::drain_filter 2017-11-25 21:28:49 +01:00
slice.rs Rollup merge of #47126 - sdroege:exact-chunks, r=bluss 2018-01-15 18:49:31 +08:00
str.rs fix some typos 2017-11-21 15:33:45 +01:00
string.rs Add support for ..= syntax 2017-09-22 22:05:18 +02:00
vec.rs Remove unused AsciiExt imports and fix tests related to ascii methods 2017-11-03 21:27:40 +01:00
vec_deque.rs Delete deprecated & unstable range-specific step_by 2017-07-01 19:18:02 -07:00