Searched refs:boxed_slice (Results 1 – 1 of 1) sorted by relevance
1655 boxed_slice: Box<[T], A>, in boxed_slice_as_array_unchecked()1657 debug_assert_eq!(boxed_slice.len(), N);1659 let (ptr, alloc) = Box::into_raw_with_allocator(boxed_slice);1678 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from()1679 if boxed_slice.len() == N { in try_from()1680 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) }) in try_from()1682 Err(boxed_slice) in try_from()1712 let boxed_slice = vec.into_boxed_slice(); in try_from() localVariable1713 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) }) in try_from()