Skip to content

core::str::validations::next_code_point only accepts an Iterator<&u8> and can not accept an Iterator<u8> #95940

Closed as not planned
@mutantbob

Description

@mutantbob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions