Tracking Issue for alloc_slice_into_array. (original) (raw)

Feature gate: #![feature(alloc_slice_into_array)]

Branched from: #133508

This is a tracking issue for adding conversion functions going from allocated slices to allocated arrays.

Public API

// alloc::boxed

impl Box<[T]> { pub fn into_array(self) -> Result<Box<[T; N]>, Self>; }

// alloc::rc

impl Rc<[T]> { pub fn into_array(self) -> Result<Rc<[T; N]>, Self>; }

// alloc::sync

impl Arc<[T]> { pub fn into_array(self) -> Result<Arc<[T; N]>, Self>; }

Steps / History

Unresolved Questions