(&self, pool: &dyn MemoryPool)
| 845 | /// multiple arrays. |
| 846 | #[cfg(feature = "pool")] |
| 847 | pub fn claim(&self, pool: &dyn MemoryPool) { |
| 848 | *self.reservation.lock().unwrap() = Some(pool.reserve(self.capacity())); |
| 849 | } |
| 850 | } |
| 851 | |
| 852 | /// Creates a non-null pointer with alignment of [`ALIGNMENT`] |