-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for ascii::Char (ACP 179) #110998
Copy link
Copy link
Open
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-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.
Metadata
Metadata
Assignees
Labels
A-UnicodeArea: UnicodeArea: UnicodeC-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
View all comments
Feature gate:
#![feature(ascii_char)]#![feature(ascii_char_variants)]This is a tracking issue for the
ascii::Chartype from rust-lang/libs-team#179https://doc.rust-lang.org/nightly/std/ascii/enum.Char.html
Public API
Steps / History
ascii::Char(ACP#179) #111009[u8]::is_ascii(unstably) #111222ascii::Charmethods fromas_toto_#114641DefaultforAsciiChar#121024FromIteratorimpls forascii::Chars toStrings #141445Unresolved Questions
charandCharmight be too confusing.Debugimpl work?Debugimpl forascii::Charmatch that ofchar#115434as-casting from it a good or bad feature?char::to_u32, justas u32for it.as_asciimethods take&selffor consistency withis_ascii. Should they takeselfinstead where possible, as the usually-better option, or stick with&selffor the consistency?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩