Function mz_ore::vec::repurpose_allocation

source ยท
pub fn repurpose_allocation<T1, T2>(v: Vec<T1>) -> Vec<T2>
Expand description

Create a new vector that re-uses the same allocation as an old one. The element types must have the same size and alignment.