Lines Matching refs:new_box_zeroed_with_elems
3699 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()
7533 assert_eq!(<[u16]>::new_box_zeroed_with_elems(usize::MAX), Err(AllocError)); in new_box_zeroed_with_elems_errors()
7537 <[u16]>::new_box_zeroed_with_elems((max / mem::size_of::<u16>()) + 1), in new_box_zeroed_with_elems_errors()