Home
last modified time | relevance | path

Searched refs:boxed_slice (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/rust/alloc/
Dboxed.rs1655 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() localVariable
1713 Ok(unsafe { boxed_slice_as_array_unchecked(boxed_slice) }) in try_from()