diff options
| author | Clark Gaebel <cg.wowus.cg@gmail.com> | 2014-12-16 17:45:03 -0500 |
|---|---|---|
| committer | Clark Gaebel <cg.wowus.cg@gmail.com> | 2014-12-18 22:16:51 -0500 |
| commit | d57f25907bc4247b4d98efce5ab6948c35baa12d (patch) | |
| tree | 9b070bff1206ecc45e21bc1beb2e9b82d4baeaf8 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | f9a48492a82f805aa40d8b6fea290badbab0d1b1 (diff) | |
| download | rust-d57f25907bc4247b4d98efce5ab6948c35baa12d.tar.gz rust-d57f25907bc4247b4d98efce5ab6948c35baa12d.zip | |
[collections] Adds `drain`: a way to sneak out the elements while clearing.
It is useful to move all the elements out of some collections without deallocating the underlying buffer. It came up in IRC, and this patch implements it as `drain`. This has been discussed as part of RFC 509. r? @Gankro cc: @frankmcsherry
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
