Skip to content

Tracking Issue for decode_utf8 #90981

Closed
Closed
@mbartlett21

Description

@mbartlett21

Feature gate: #![feature(decode_utf8)]

This is a tracking issue for decoding characters from byte (u8) iterators.

Public API

// core::char

struct DecodeUtf8<I: Iterator<Item = u8>>;

impl Iterator for DecodeUtf8<_> { .. }

struct DecodeUtf8Error;

impl DecodeUtf8Error {
    fn invalid_byte(&self) -> u8;
}

// Also a method on `char`
fn decode_utf8<I: IntoIterator<Item = u8>>(i: I) -> DecodeUtf8<I::IntoIter>;

Steps / History

Unresolved Questions

  • Should the error just consist of a single byte?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-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