about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2016-12-30 21:18:17 -0800
committerSteven Fackler <sfackler@gmail.com>2017-01-01 19:18:07 -0800
commitf2cb47adf95171e48a9f918aae00193a7d36c7c0 (patch)
treec0e544501aa9ecdef3de767d662f030907504f28 /src/liballoc_system
parent6c9bb42ecc48ffb5a3c8b61e220b11adc3a46384 (diff)
downloadrust-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