-
Notifications
You must be signed in to change notification settings - Fork 322
Add HashSet#raw_table #358
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
Conversation
76dddaa to
e233127
Compare
Just like rust-lang#335 did for `HashMap`, I'd like to add access to the underlying `RawTable` for `HashSet`. I intend to use it in conjunction with rust-lang#354 to pull random elements from a `HashSet`.
e233127 to
ed9a3d5
Compare
src/set.rs
Outdated
| /// | ||
| /// # Note | ||
| /// | ||
| /// Calling the function safe, but using raw hash table API's may require |
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.
| /// Calling the function safe, but using raw hash table API's may require | |
| /// Calling the function is safe, but using raw hash table API's may require |
This should probably be fixed in the HashMap version as well.
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.
Fixed both places in 6041b5a, along with a little tweaking of the grammar in that sentence. Let me know if you'd like something different!
|
@bors r+ Thanks! |
|
☀️ Test successful - checks-actions |
|
Thank you! |
Just like #335 did for
HashMap, I'd like to add access to the underlyingRawTableforHashSet. I intend to use it in conjunction with #354 to pull random elements from aHashSet.Let me know if I've missed something here or you'd like things implemented differently. I'll be happy to change it up!