pub fn repurpose_allocation<T1, T2>(v: Vec<T1>) -> Vec<T2>
Create a new vector that re-uses the same allocation as an old one. The element types must have the same size and alignment.