Skip to content

Tracking Issue for char_max_len #121714

Open
@HTGAzureX1212

Description

@HTGAzureX1212

Feature gate: #![feature(char_max_len)]

This is a tracking issue for #45795.

Public API

// core::char

impl char {
    pub const MAX_LEN_UTF8: usize = 4;
    pub const MAX_LEN_UTF16: usize = 2;
}

pub const MAX_LEN_UTF8: usize = char::MAX_LEN_UTF8;
pub const MAX_LEN_UTF16: usize = char::MAX_LEN_UTF16;

Steps / History

Notes for Stabilization

When stabilizing this, the documentation for the char::encode_utf8 function should be
adjusted to include these constants.

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

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