Closed as not planned
Closed as not planned
Description
core::str::validations::next_code_point
only accepts an Iterator<Item=&u8>
. Unfortunately my code that needs to convert a byte stream to characters can only have an Iterator<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 for next_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.