-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
@@ -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: |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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>; |
There was a problem hiding this comment.
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!
Add drain, and link to WIP implementations.
Mention ChanReader/ChanWriter will be unstable
Modify read_full/read_exact RFC
Add specifics around feature gates
Explicit type punning alternative.
A lot of misc changes to extern types
No description provided.