(count: usize)
| 257 | // TODO: Add !Drop to signature, but that doesn't seem to be implemented in the compiler yet... |
| 258 | #[cfg(feature = "experimental")] |
| 259 | pub unsafe fn acquire_uninitialized<T>(count: usize) -> StackAlloc<T> { |
| 260 | THREAD_LOCAL_POOL.with(|rc| { |
| 261 | rc.borrow_mut().acquire(count) |
| 262 | }) |
| 263 | } |
| 264 | |
| 265 | // TODO: Relax the TrustedLen constraint, opting instead to allocate the larger bound, |
| 266 | // and release any extra unused space after running the iterator. |