-
Notifications
You must be signed in to change notification settings - Fork 13.3k
add str::get_unchecked(_mut) in accordance with slice #40436
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
Conversation
As for implementation, you probably will also want to add the methods to |
which can takes usize or ranges as generic parameter
Also, use |
Since the parameter can be a range, I assume it represents |
Also, if the parameter is an |
I noticed the implementation of |
Yes, The The All the methods should be available on both
Oh hmm, amusing oversight in the API. I’m not sure. |
I do not think we want to allow indexing EDIT: so instead of using SliceIndex, we’ll probably want to change it somehow to be able to differentiate between slicing
|
I agree we should not allow indexing I tend to not to add the |
I’m fine with adding these later.
Please see my edit to the previous comment. |
Thanks for the PR @F001! I agree with the conclusion so far that reusing the |
@alexcrichton Thanks for your attention. I was very busy in the past few days and will not have enough time to do this work recently. So I would like to close this PR for now. And hopefully I will come back to work on this issue again. @nagisa Thanks for your patient guidance. I will close this PR and create a new one later. |
They take usize or ranges as generic parameter.
cc #39932
r? @nagisa