Skip to content
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

Add slice::from_pointer_range #87135

Closed
khuey opened this issue Jul 14, 2021 · 2 comments
Closed

Add slice::from_pointer_range #87135

khuey opened this issue Jul 14, 2021 · 2 comments
Labels
A-slice Area: `[T]` 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

@khuey
Copy link
Contributor

khuey commented Jul 14, 2021

#65806 added [T]::as_ptr_range. It would be nice if there were a slice::from_raw_parts analog that went the other way. Range<*const T> is a convenient way to pass around the start and length information needed for a slice.

@jonas-schievink jonas-schievink added 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. labels Jul 14, 2021
@inquisitivecrystal inquisitivecrystal added the A-slice Area: `[T]` label Jul 17, 2021
@KonaeAkira
Copy link

#89792 exists. Can this issue be closed?

@khuey
Copy link
Contributor Author

khuey commented Aug 20, 2024

Yeah.

@khuey khuey closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-slice Area: `[T]` 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