-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[ER] get_two_mut #78541
Copy link
Copy link
Closed
Labels
A-sliceArea: `[T]`Area: `[T]`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.
Metadata
Metadata
Assignees
Labels
A-sliceArea: `[T]`Area: `[T]`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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
In various cases I'd like a slice method similar to slice::split_at_mut but simpler, that returns just two items at different indexes:
That panics if i == j or i >= self.len() or i >= self.len().