It is useful to move all the elements out of a hashmap without deallocating the underlying buffer. It came up in IRC, and this patch implements it as `drain`. r? @Gankro cc: @frankmcsherry |
||
|---|---|---|
| .. | ||
| bench.rs | ||
| map.rs | ||
| mod.rs | ||
| set.rs | ||
| table.rs | ||
It is useful to move all the elements out of a hashmap without deallocating the underlying buffer. It came up in IRC, and this patch implements it as `drain`. r? @Gankro cc: @frankmcsherry |
||
|---|---|---|
| .. | ||
| bench.rs | ||
| map.rs | ||
| mod.rs | ||
| set.rs | ||
| table.rs | ||