Skip to content

slice::slice_unchecked does not exist #35097

New issue

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

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

Already on GitHub? # to your account

Closed
nagisa opened this issue Jul 28, 2016 · 2 comments
Closed

slice::slice_unchecked does not exist #35097

nagisa opened this issue Jul 28, 2016 · 2 comments

Comments

@nagisa
Copy link
Member

nagisa commented Jul 28, 2016

There exists a str::slice_unchecked, but no similar method for slices themselves. There probably should be one.

@sfackler
Copy link
Member

rust-lang/rfcs#1679 adds these by overloading get_unchecked to accept range arguments.

@bluss
Copy link
Member

bluss commented Dec 12, 2016

This was added in #36340!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants