Skip to content

Add slice::from_pointer_range #87135

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sliceArea: `[T]`C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions