Lines Matching refs:AllocError
3616 fn new_box_zeroed() -> Result<Box<Self>, AllocError> in new_box_zeroed()
3649 return Err(AllocError); in new_box_zeroed()
3699 fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError> in new_box_zeroed_with_elems()
3716 fn new_box_slice_zeroed(len: usize) -> Result<Box<[Self]>, AllocError> in new_box_slice_zeroed()
3753 fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError> in new_vec_zeroed()
3772 fn extend_vec_zeroed(v: &mut Vec<Self>, additional: usize) -> Result<(), AllocError> in extend_vec_zeroed()
3801 ) -> Result<(), AllocError> in insert_vec_zeroed()
3808 v.try_reserve(additional).map_err(|_| AllocError)?; in insert_vec_zeroed()
6439 ) -> Result<(), AllocError> { in extend_vec_zeroed() argument
6457 ) -> Result<(), AllocError> { in insert_vec_zeroed() argument
7533 assert_eq!(<[u16]>::new_box_zeroed_with_elems(usize::MAX), Err(AllocError)); in new_box_zeroed_with_elems_errors()
7538 Err(AllocError) in new_box_zeroed_with_elems_errors()