-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for {str, [T], Path}::trim_prefix and {str, [T]}::trim_suffix #142312
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-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PRStatus: This is ready to stabilize; it may need a stabilization report and a PRT-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-ready-to-stabilizeStatus: This is ready to stabilize; it may need a stabilization report and a PRStatus: This is ready to stabilize; it may need a stabilization report and a PRT-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(trim_prefix_suffix)]This is a tracking issue for adding
trim_prefixandtrim_suffixmethods tostrthat remove at most one occurrence of a specified prefix or suffix while always returning a string slice (rather thanOption<&str>), enabling easy method chaining.1Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)trim_prefixandtrim_suffixmethods for bothsliceandstrtypes. #142331Unresolved Questions
Footnotes
https://github.com/rust-lang/libs-team/issues/597 ↩
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩