-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
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
While writing a generic implementation today, I was surprised that you can't do s[i]
for i: SliceIndex<S>
, if s
is of slice type &S
. Doing s.get(i).unwrap()
is an easy enough workaround, but feels really bad. Replacing the various explicit impls with one for SliceIndex
would feel much nicer.
Metadata
Metadata
Assignees
Labels
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.