Closed
Description
Feature gate: #![feature(str_split_once)]
Public API
impl str {
pub fn split_once<'a, P: Pattern<'a>>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>;
pub fn rsplit_once<'a, P: Pattern<'a>>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>;
}
Steps / History
- Implementation: Add str::[r]split_once #74707
- Final commenting period (FCP): Tracking Issue for str_split_once #74773 (comment)
- Stabilization PR: Stabilize str_split_once #81940
Unresolved Questions
- Should the method return the separator as well (
(&str, &str, &str)
)? (str::split_once is underpowered #76512)
Metadata
Metadata
Assignees
Labels
Area: str and StringBlocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCLibs issues that are considered "small" or self-containedLibs issues that are tracked on the team's project board.Relevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.