Skip to content

Define fn [_]::try_split_at(&self, usize) -> Option<(&Self, &Self)> #54886

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
strake opened this issue Oct 7, 2018 · 2 comments
Open

Define fn [_]::try_split_at(&self, usize) -> Option<(&Self, &Self)> #54886

strake opened this issue Oct 7, 2018 · 2 comments
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@strake
Copy link
Contributor

strake commented Oct 7, 2018

PR #54887

@Havvy Havvy added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. C-feature-request Category: A feature request, i.e: not implemented / a PR. labels Oct 7, 2018
@Ben-Lichtman
Copy link
Contributor

Adding the comment I made on the PR:

I know that this issue is long-closed, however I'd like to add that this would allow the removal of panicking code paths from critical code which may not panic, so I suggest a reconsideration.

Without this, one has to rely on unstable optimizations to remove panicking code.

@shumpohl
Copy link

This was stabilized in 1.80 under the name split_at_checked and split_at_mut_checked.

Issue: #119128
Stabilization: #124678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request, i.e: not implemented / a PR. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants