pub fn repurpose_allocation<T1, T2>(v: Vec<T1>) -> Vec<T2>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
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.