-
Notifications
You must be signed in to change notification settings - Fork 48
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 a struct HashMapRef which holds a reference and guard #45
Conversation
Obvious absences are all of the I also need to add tests, but I wanted to float the idea in a PR before I continue. |
Codecov Report
|
Ah, that is just beautiful! No, |
I pushed a fix for Also, #44 just added explicit guards to a bunch more methods, which may be a good precursor to the work here. |
Hmm, maybe I should just cross-link docs, instead of duplicating them... |
Yeah, I think that's probably fine, given that they are "feed-through" anyway. I wish there was a way to |
Oh, also, you may want to rebase on/merge |
This is created by `HashMap::as_ref(&self)`, and it implements most of the same public API, just with implicit epoch guards. Additionally, it implements `IntoIterator` by reference, and a new trick -- `Index`!
Fantastic, thank you! |
This is created by
HashMap::as_ref(&self)
, and it implements most ofthe same public API, just with implicit epoch guards. Additionally, it
implements
IntoIterator
by reference, and a new trick --Index
!