-
Notifications
You must be signed in to change notification settings - Fork 292
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
Implement Debug
, FusedIterator
and Iterator::fold
for all HashTable
iterators
#561
Conversation
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.
Can IterHash
and IterHashMut
also get Debug
?
And perhaps Clone for IterHash
too?
F: FnMut(B, Self::Item) -> B, | ||
{ | ||
self.inner | ||
.fold(init, |acc, bucket| unsafe { f(acc, bucket.as_ref()) }) |
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.
This is okay, but the inner RawIterHash
isn't doing anything special for fold
.
(Ditto for IterHashMut
, and Drain
's RawDrain
.)
} | ||
} | ||
|
||
impl<T> Default for RawIterHash<T> { |
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.
Great - did you mean to propagate that up too?
…Table` iterators
@bors r+ |
☀️ Test successful - checks-actions |
No description provided.