Lines Matching defs:AllocError
13 AllocError,
351 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> {
527 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> {
648 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> {
658 return Err(AllocError);
663 let new_cap = core::cmp::max(cap * 2, len.checked_add(additional).ok_or(AllocError)?);
664 let layout = ArrayLayout::new(new_cap).map_err(|_| AllocError)?;
789 pub fn shrink_to(&mut self, min_capacity: usize, flags: Flags) -> Result<(), AllocError> {
805 let new_layout = ArrayLayout::<T>::new(target_cap).map_err(|_| AllocError)?;
893 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> {
932 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> {
948 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> {
973 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> {
1287 /// - `FromIterator::from_iter` does return `Self` instead of `Result<Self, AllocError>`, hence