-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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
- Implementation: Add
MAX_LEN_UTF8
andMAX_LEN_UTF16
Constants #120580 - Final comment period (FCP)1
- Stabilization PR
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
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.