diff options
| author | bors <bors@rust-lang.org> | 2017-01-07 19:21:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-07 19:21:49 +0000 |
| commit | b97b60521199c9232cb42bbba87d53568fb29841 (patch) | |
| tree | 23e450c0b5943617c9bb4ae87a32e9784d406f54 /src/liballoc_system | |
| parent | 31918864261c9fde79df1f84c5f22ab40b115ca9 (diff) | |
| parent | 54dc533494bba8256dcd7c54597fb1d42ef070ab (diff) | |
| download | rust-b97b60521199c9232cb42bbba87d53568fb29841.tar.gz rust-b97b60521199c9232cb42bbba87d53568fb29841.zip | |
Auto merge of #38733 - sfackler:peek-mut-pop, r=alexcrichton
Add PeekMut::pop A fairly common workflow is to put a bunch of stuff into a binary heap and then mutate the top value until its empty. This both makes that a bit more convenient (no need to save a boolean off and pop after to avoid borrowck issues), and a bit more efficient since you only shift once. r? @alexcrichton cc @rust-lang/libs
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
