Skip to main content

repurpose_allocation

Function 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.