Skip to content

Add slice::from_pointer_range #87135

Closed as not planned
Closed as not planned
@khuey

Description

@khuey

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sliceArea: `[T]`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions