-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.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.
Description
Like replace(..., ""), but doesn't result in any allocations.
I started implementing this in #50015 but got stuck, mainly because of limitations in the Pattern APIs.
let mut s = String::from("Trees are not green, the sky is not blue.");
s.remove_matches("not ");
assert_eq!("Trees are green, the sky is blue.", s);This issue has been assigned to @jcotton42 via this comment.
edo888, k12ish and panziscottmcm, golddranks and kevincox
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.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.