Tracking Issue for slice_from_ptr_range · Issue #89792 · rust-lang/rust (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@ibraheemdev

Description

@ibraheemdev

Feature gate: #![feature(slice_from_ptr_range)]

This is a tracking issue for slice::{from_ptr_range, from_mut_ptr_range}, counterparts to slice::{as_ptr_range, as_mut_ptr_range}.

Public API

// core::slice

pub unsafe fn from_ptr_range<'a, T>(range: Range<*const T>) -> &'a [T]; pub unsafe fn from_mut_ptr_range<'a, T>(range: Range<*mut T>) -> &'a mut [T];

Steps / History

Unresolved Questions