Home
last modified time | relevance | path

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

/linux/rust/zerocopy/src/
H A Dlib.rs3699 fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError> in new_box_zeroed_with_elems() method
3720 <[Self]>::new_box_zeroed_with_elems(len) in new_box_slice_zeroed()
3757 <[Self]>::new_box_zeroed_with_elems(len).map(Into::into) in new_vec_zeroed()
6958 <[bool]>::new_box_zeroed_with_elems(3).unwrap().as_ref(), in test_from_zeros_only()
6962 <[char]>::new_box_zeroed_with_elems(3).unwrap().as_ref(), in test_from_zeros_only()
6988 assert_eq!(<[()]>::new_box_zeroed_with_elems(3).unwrap().len(), 3); in test_zst_count_preserved()
7498 let mut s: Box<[u64]> = <[u64]>::new_box_zeroed_with_elems(3).unwrap(); in test_new_box_zeroed_with_elems()
7507 let s: Box<[u64]> = <[u64]>::new_box_zeroed_with_elems(0).unwrap(); in test_new_box_zeroed_with_elems_empty()
7513 let mut s: Box<[()]> = <[()]>::new_box_zeroed_with_elems(3).unwrap(); in test_new_box_zeroed_with_elems_zst()
7527 let s: Box<[()]> = <[()]>::new_box_zeroed_with_elems(0).unwrap(); in test_new_box_zeroed_with_elems_zst_empty()
[all …]