Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drain, and link to WIP implementations. #1

Merged
merged 2 commits into from
Dec 17, 2014

Conversation

cgaebel
Copy link

@cgaebel cgaebel commented Dec 17, 2014

No description provided.

@@ -120,6 +122,18 @@ pub fn resize(&mut self, new_len: uint, value: T) where T: Clone
This is actually easy to implement out-of-tree on top of the current Vec API, but it has
been frequently requested.

* For HashMap and HashSet:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why Vec/RingBuf/BinaryHeap wouldn't also impl? (I mean everyone could but the node-based ones obviously don't extract that much value, other than only needing &mut, I guess).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh. I forgot that RFCs were for more than just "stuff I've already written".

Will fix.

```
/// Clears the map, returning all key-value pairs as an iterator. Keeps the
/// allocated memory for reuse.
pub fn drain(&mut self) -> DrainEntries<K, V>;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Close enough for horse grenades! Ship it!

Gankra added a commit that referenced this pull request Dec 17, 2014
Add drain, and link to WIP implementations.
@Gankra Gankra merged commit a5a655d into Gankra:collections2 Dec 17, 2014
Gankra pushed a commit that referenced this pull request Feb 11, 2015
Mention ChanReader/ChanWriter will be unstable
Gankra pushed a commit that referenced this pull request Aug 14, 2015
Modify read_full/read_exact RFC
Gankra pushed a commit that referenced this pull request Mar 29, 2017
Add specifics around feature gates
Gankra pushed a commit that referenced this pull request Mar 29, 2017
Gankra pushed a commit that referenced this pull request Mar 29, 2017
Explicit type punning alternative.
Gankra pushed a commit that referenced this pull request Aug 18, 2017
A lot of misc changes to extern types
Gankra pushed a commit that referenced this pull request Aug 18, 2017
Gankra pushed a commit that referenced this pull request Aug 18, 2017
Update 0000-trait-alias.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants