We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In Itertools there's Itertools::next_tuple():
https://docs.rs/itertools/0.10.3/itertools/trait.Itertools.html#method.next_tuple
But for the Rust stdlib I prefer something more general, an array chunks for iterator (that perhaps works only on Copy types?):
Iterator::array_chunks_copy::()
It's similar to slice::array_chunks but I think it should return actual arrays instead of array references.
Beside this functions I'd like a rustc (or Clippy) lint that warns against returning large chunks.
The text was updated successfully, but these errors were encountered:
Have you seen #92393 and #93700?
Sorry, something went wrong.
Thank you, I didn't, I close this issue down as dupe.
No branches or pull requests
In Itertools there's Itertools::next_tuple():
https://docs.rs/itertools/0.10.3/itertools/trait.Itertools.html#method.next_tuple
But for the Rust stdlib I prefer something more general, an array chunks for iterator (that perhaps works only on Copy types?):
Iterator::array_chunks_copy::()
It's similar to slice::array_chunks but I think it should return actual arrays instead of array references.
Beside this functions I'd like a rustc (or Clippy) lint that warns against returning large chunks.
The text was updated successfully, but these errors were encountered: