Closed clarfonthey closed 3 months ago
As far as I remember, parallel iterator (rayon) uses RawIterRange directly, so maybe it would be nice to implement Default for RawIterRange too.
That would be a bit difficult for a pub(crate)
iterator.
@bors r+
:pushpin: Commit abd706ec35e699653cd176a7a817bd3100e71c00 has been approved by Amanieu
It is now in the queue for this repository.
:hourglass: Testing commit abd706ec35e699653cd176a7a817bd3100e71c00 with merge f677701e261d497ad72216cefa69fd89b73164cc...
:sunny: Test successful - checks-actions Approved by: Amanieu Pushing f677701e261d497ad72216cefa69fd89b73164cc to master...
See rust-lang/rust#128261 for a similar PR for some libstd iterators. In order to do a similar PR for the
HashSet
andHashMap
types, we need to make these changes tohashbrown
first to actually implement them.One small caveat is that I chose to only implement
Default
forRawIter
and notRawIterRange
, since it really exists as an implementation detail anyway, and the best implementation would involve just using theRawIter
implementation anyway.