pub fn new_boxed_slice_from_iter<T>(
iter: impl IntoIterator<Item = T>,
) -> Result<Box<[T]>, OutOfMemory>Expand description
Create a Box<[T]> from the given iterator’s elements.
Returns an error on allocation failure.
pub fn new_boxed_slice_from_iter<T>(
iter: impl IntoIterator<Item = T>,
) -> Result<Box<[T]>, OutOfMemory>Create a Box<[T]> from the given iterator’s elements.
Returns an error on allocation failure.