diff options
| author | Steven Fackler <sfackler@gmail.com> | 2016-12-30 21:18:17 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2017-01-01 19:18:07 -0800 |
| commit | f2cb47adf95171e48a9f918aae00193a7d36c7c0 (patch) | |
| tree | c0e544501aa9ecdef3de767d662f030907504f28 /src/liballoc_system | |
| parent | 6c9bb42ecc48ffb5a3c8b61e220b11adc3a46384 (diff) | |
| download | rust-f2cb47adf95171e48a9f918aae00193a7d36c7c0.tar.gz rust-f2cb47adf95171e48a9f918aae00193a7d36c7c0.zip | |
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.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions
