We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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: