rust/library/alloc/src
Jonas Schievink 738a41b363
Rollup merge of #77449 - ssomers:btree_drain_filter_size_hint, r=Mark-Simulacrum
BTreeMap: comment why drain_filter's size_hint is somewhat pessimistic

The `size_hint` of the `DrainFilter` iterator doesn't adjust as you iterate. This hardly seems important to me, but there has been a comparable PR #64383 in the past. I guess a scenario is that you first iterate half the map manually and keep most of the key/value pairs in the map, and then tell the predicate to drain most of the key/value pairs and `.collect` the iterator over the remaining half of the map.

I am totally ambivalent whether this is better or not.

r? @Mark-Simulacrum
2020-10-08 23:23:08 +02:00
..
alloc Replace Memoryblock with NonNull<[u8]> 2020-08-04 18:03:34 +02:00
collections Rollup merge of #77449 - ssomers:btree_drain_filter_size_hint, r=Mark-Simulacrum 2020-10-08 23:23:08 +02:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw_vec Rename AllocErr to AllocError 2020-09-28 14:51:03 -04:00
rc Add tests for weak into/from raw 2020-09-12 10:38:33 -05:00
sync Add tests for weak into/from raw 2020-09-12 10:38:33 -05:00
alloc.rs Implement Make handle_alloc_error default to panic (for no_std + liballoc) 2020-10-02 09:00:29 +02:00
borrow.rs Update library functions with stability attributes 2020-09-22 10:05:58 -07:00
boxed.rs Use intra-doc links for MaybeUninit in boxed.rs 2020-09-01 23:54:17 -04:00
fmt.rs Apply suggestions from code review 2020-08-21 19:31:00 +02:00
lib.rs Replace some once(x).chain(once(y)) with [x, y] IntoIter 2020-10-03 16:51:43 -07:00
macros.rs Use intra-doc-links in alloc 2020-08-21 00:25:25 +02:00
raw_vec.rs Rollup merge of #76993 - blitzerr:alloc-ref, r=Amanieu 2020-09-23 14:54:06 +02:00
rc.rs Auto merge of #74160 - CAD97:weak-as-unsized-ptr, r=RalfJung 2020-10-03 14:18:26 +00:00
slice.rs Rollup merge of #75026 - JulianKnodt:array_windows, r=Amanieu 2020-09-16 12:24:03 -07:00
str.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
string.rs Rollup merge of #76525 - fusion-engineering-forks:string-drain, r=dtolnay 2020-09-19 11:47:47 +02:00
sync.rs Auto merge of #74160 - CAD97:weak-as-unsized-ptr, r=RalfJung 2020-10-03 14:18:26 +00:00
task.rs Allow unstable From impl for [Raw]Waker. 2020-09-11 13:36:45 +02:00
tests.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
vec.rs Auto merge of #74194 - mbrubeck:slice-eq, r=sfackler 2020-10-07 01:20:11 +00:00