Add slice::from_pointer_range #87135
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.
#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.The text was updated successfully, but these errors were encountered: