I am currently working with vectors and trying to ensure I have what is essentially an array of my vector on the stack. I cannot call Vec::into_boxed_slice
since I am dynamically allocating space in my Vec
. Is this at all possible?
Having read the Rustonomicon on how to implement Vec
, it seems to stride over pointers on the heap, dereferencing at each entry. I want to chunk in Vec
entries from the heap into the stack for fast access.