core::str::validations::next_code_point only accepts an Iterator<&u8> and can not accept an Iterator<u8> #95940
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
core::str::validations::next_code_point
only accepts anIterator<Item=&u8>
. Unfortunately my code that needs to convert a byte stream to characters can only have anIterator<Item=u8>
. My specific use case is a string constant stored in progmem on an AVR (Arduino Uno), which requires special machine code to access, because the data exists in a separate address space from regular RAM. Other use cases could include streaming decompression or decryption. For now I have duplicated the code fornext_code_point
and embedded it in my application, but it would be nice to be able to use reuse the same code as the standard library.The text was updated successfully, but these errors were encountered: