-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Tracking Issue for str::replace_with #147731
Copy link
Copy link
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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
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 RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-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.
Feature gate:
#![feature(replace_with)]This is a tracking issue for the implementation of
replace_withandreplacen_withfor the String type in standart library, followed from the ACP (rust-lang/libs-team#344 (comment)).This feature adds
str::replace_withas an augmentation ofstr::replaceandstr::replacen_withas an augmentation ofstr:replacento the standard library. Compared to the current versions, these functions allow for passing anf: impl FnMut(&str) -> Sthat can be used to produce replacements dynamically as well as to insert custom computations such as counting the number of changes.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)replace_withandreplacen_withfor unstable featurereplace_with#147741Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩