-
Couldn't load subscription status.
- Fork 13.9k
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(str_as_str)]
This is a tracking issue for the as_str() method on the str type itself, so that Box<str>, Rc<str>, Arc<str> & others can have the same things as String has.
Public API
impl str {
pub const fn as_str(&self) -> &Self;
}Steps / History
- Implementation: Add str.as_str() for easy Deref to string slices #129550,
constify (the unstable)str::as_str#145930 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
DushistovWaffleLapkin, MolotovCherry, clubby789, lxl66566, grantfanian and 10 more
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.