Searched refs:boxed_slice (Results 1 – 1 of 1) sorted by relevance
1633 boxed_slice: Box<[T], A>, in boxed_slice_as_array_unchecked()1635 debug_assert_eq!(boxed_slice.len(), N);1637 let (ptr, alloc) = Box::into_raw_with_allocator(boxed_slice);1656 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from()1657 if boxed_slice.len() == N { in try_from()1658 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) }) in try_from()1660 Err(boxed_slice) in try_from()1690 let boxed_slice = vec.into_boxed_slice(); in try_from() localVariable1691 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) }) in try_from()