Lines Matching refs:OutOfMemory
2 use crate::error::OutOfMemory;
74 fn try_clone(&self) -> Result<Self, OutOfMemory> { in try_clone() argument
93 pub fn with_capacity(capacity: usize) -> Result<Self, OutOfMemory> { in with_capacity() argument
102 pub fn from_elem(elem: T, len: NonZeroUsize) -> Result<Self, OutOfMemory> in from_elem()
120 pub fn reserve(&mut self, additional: usize) -> Result<(), OutOfMemory> { in reserve() argument
122 OutOfMemory::new( in reserve()
132 pub fn reserve_exact(&mut self, additional: usize) -> Result<(), OutOfMemory> { in reserve_exact() argument
135 .map_err(|_| OutOfMemory::new(self.len().saturating_add(additional))) in reserve_exact()
155 pub fn push(&mut self, value: T) -> Result<(), OutOfMemory> { in push() argument
173 pub fn resize(&mut self, new_len: usize, value: T) -> Result<(), OutOfMemory> in resize()
196 pub fn resize_with<F>(&mut self, new_len: usize, f: F) -> Result<(), OutOfMemory> in resize_with()
262 pub fn shrink_to_fit(&mut self) -> Result<(), OutOfMemory> { in shrink_to_fit() argument
314 pub fn into_boxed_slice(mut self) -> Result<Box<[T]>, OutOfMemory> { in into_boxed_slice() argument
499 use crate::error::OutOfMemory;
502 fn test_into_boxed_slice() -> Result<(), OutOfMemory> { in test_into_boxed_slice()