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

VacantEntry should provide an accessor for the key #18323

Closed
kmcallister opened this issue Oct 25, 2014 · 5 comments
Closed

VacantEntry should provide an accessor for the key #18323

kmcallister opened this issue Oct 25, 2014 · 5 comments
Labels
A-collections Area: `std::collection`

Comments

@kmcallister
Copy link
Contributor

So that I can use it (by reference) to compute the value to store.

@huonw
Copy link
Member

huonw commented Oct 25, 2014

Any particular reason you're restricting to only VacantEntry?

@Gankra
Copy link
Contributor

Gankra commented Oct 26, 2014

This was part of my initial proposal, we cut it out for complexity reasons. Easy to provide, although might add overhead to some which could ditch the key (potentially SmallIntMap).

CC @aturon
CC rust-lang/rfcs/issues/353

@Gankra
Copy link
Contributor

Gankra commented Oct 26, 2014

Also an into_key method was proposed.

@kmcallister kmcallister added the A-collections Area: `std::collection` label Jan 16, 2015
@apasel422
Copy link
Contributor

CC rust-lang/rfcs#1194.

@apasel422
Copy link
Contributor

Fixed by #32248.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-collections Area: `std::collection`
Projects
None yet
Development

No branches or pull requests

4 participants