- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Description
Feature gate: #![feature(path_as_mut_os_str)]
This is a tracking issue for adding PathBuf::as_mut_os_string and Path::as_mut_os_str (rust-lang/libs-team#140).
Public API
impl PathBuf {
    // ...
    pub fn as_mut_os_string(&mut self) -> &mut OsString {
        &mut self.inner
    }
    // ...
}
impl Path {
    // ...
    pub fn as_mut_os_str(&mut self) -> &mut OsStr {
        &mut self.inner
    }
    // ...
}Steps / History
-  Implementation: Add PathBuf::as_mut_os_stringandPath::as_mut_os_str#105002
-  Implement DerefMut for PathBuf #105018: the initial example for Path::as_mut_os_strwas contrived because one must go throughinto_boxed_pathto get a&mut Path. ADerefMutimpl makes it possible to demonstrate a more realistic use.
-  Realistic Path::as_mut_os_strdoctest #105801
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
cuppachino
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.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.