Skip to content

libcore: add pop/swap/consume to SendMap - #3697

Closed
erickt wants to merge 1 commit into
rust-lang:incomingfrom
erickt:sendmap
Closed

erickt wants to merge 1 commit into
rust-lang:incomingfrom
erickt:sendmap

Conversation

@erickt

@erickt erickt commented Oct 8, 2012

Copy link
Copy Markdown
Contributor

This patch adds a couple destructive functions to SendMap. pop allows you to remove and return a value, swap allows you to update a key and return the old value, and consume allows you to consume without copying all the keys/values in a map.

@nikomatsakis

Copy link
Copy Markdown
Contributor

Thanks!

U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
3697: update itertools version to 0.9.0 r=matklad a=JoshMcguigan

Updating `itertools` version per [feedback on rust-lang#3689](rust-lang/rust-analyzer#3689 (comment)) from @SomeoneToIgnore.

Worth noting that `chalk` still uses `itertools` v0.8.2, so perhaps it is worth a PR to update that repo as well so we don't have to build both versions?

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
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