Function transvec::transmute_vec_unsafe [−][src]
pub unsafe fn transmute_vec_unsafe<I, O, A: Allocator>(
input: Vec<I, A>
) -> Result<Vec<O, AlignmentCorrectorAllocator<I, O, A>>, (Vec<I, A>, TransmuteError)>
Expand description
Transmute between two types of Vecs
Safety/Info
- Data is dropped, use
Vec::set_len
if you don’t want this. &[I]
to&[O]
should be valid apart from length and alignment checks.