Lines Matching defs:AllocError
3851 fn new_box_zeroed() -> Result<Box<Self>, AllocError>
3884 return Err(AllocError);
3934 fn new_box_zeroed_with_elems(count: usize) -> Result<Box<Self>, AllocError>
3951 fn new_box_slice_zeroed(len: usize) -> Result<Box<[Self]>, AllocError>
3988 fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>
4007 fn extend_vec_zeroed(v: &mut Vec<Self>, additional: usize) -> Result<(), AllocError>
4036 ) -> Result<(), AllocError>
4043 v.try_reserve(additional).map_err(|_| AllocError)?;
6688 ) -> Result<(), AllocError> {
6706 ) -> Result<(), AllocError> {
8095 assert_eq!(<[u16]>::new_box_zeroed_with_elems(usize::MAX), Err(AllocError));
8100 Err(AllocError)