Function stackalloc::stackalloc_uninit
source · [−]pub fn stackalloc_uninit<T, U, F>(size: usize, callback: F) -> U where
F: FnOnce(&mut [MaybeUninit<T>]) -> U,
Expand description
Allocate a runtime length slice of uninitialised T
on the stack, call callback
with this buffer, and then deallocate the buffer.
The slice is aligned to type T
.
See alloca()
.