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
Wouldn't it be handy to accept an iterator instead of a slice? Maybe like:
fn read_u32<T: IntoIterator>(buf: &T) -> u32; fn write_u32<T: IntoIterator>(buf: &mut T, n: u32);
Maybe if you really need the amount of items of T you may use ExactSizeIterator instead of plain IntoIterator.
T
ExactSizeIterator
The text was updated successfully, but these errors were encountered:
No, sorry, this doesn't work. A fast implementation needs a slice.
Sorry, something went wrong.
Alright, I can accept that argument ;)
No branches or pull requests
Wouldn't it be handy to accept an iterator instead of a slice? Maybe like:
Maybe if you really need the amount of items of
T
you may useExactSizeIterator
instead of plain IntoIterator.The text was updated successfully, but these errors were encountered: