(&mut self, value: T)
| 364 | /// storage, and the new capacity exceeds `Slab::MAX_CAPACITY`. |
| 365 | #[inline] |
| 366 | pub fn alloc(&mut self, value: T) -> Result<Id, OutOfMemory> { |
| 367 | self.try_alloc(value) |
| 368 | .or_else(|value| self.alloc_slow(value)) |
| 369 | } |
| 370 | |
| 371 | /// Get the `Id` that will be returned for the next allocation in this slab. |
| 372 | #[inline] |
no test coverage detected