MCPcopy Create free account
hub / github.com/That3Percent/second-stack / acquire_uninitialized

Function acquire_uninitialized

src/lib.rs:259–263  ·  view source on GitHub ↗
(count: usize)

Source from the content-addressed store, hash-verified

257// TODO: Add !Drop to signature, but that doesn't seem to be implemented in the compiler yet...
258#[cfg(feature = "experimental")]
259pub 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.

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.80

Tested by

no test coverage detected