Skip to content

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

Merged
merged 2 commits into from
Sep 8, 2022
Merged

Add HashSet#raw_table #358

merged 2 commits into from
Sep 8, 2022

Conversation

braddunbar
Copy link
Contributor

Just like #335 did for HashMap, I'd like to add access to the underlying RawTable for HashSet. I intend to use it in conjunction with #354 to pull random elements from a HashSet.

Let me know if I've missed something here or you'd like things implemented differently. I'll be happy to change it up!

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`.
src/set.rs Outdated
///
/// # Note
///
/// Calling the function safe, but using raw hash table API's may require
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// 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.

Copy link
Contributor Author

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!

@Amanieu
Copy link
Member

Amanieu commented Sep 8, 2022

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Sep 8, 2022

📌 Commit 6041b5a has been approved by Amanieu

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 8, 2022

⌛ Testing commit 6041b5a with merge f89bcf8...

@bors
Copy link
Contributor

bors commented Sep 8, 2022

☀️ Test successful - checks-actions
Approved by: Amanieu
Pushing f89bcf8 to master...

@bors bors merged commit f89bcf8 into rust-lang:master Sep 8, 2022
@braddunbar braddunbar deleted the set-raw-table branch September 8, 2022 13:12
@braddunbar
Copy link
Contributor Author

Thank you!

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.

3 participants