Function transvec::transmute_vec_may_copy_unsafe [−][src]
pub unsafe fn transmute_vec_may_copy_unsafe<I: Pod, O: Pod, A: Allocator>(
input: Vec<I, A>
) -> Vec<O, AlignmentCorrectorAllocator<I, O, A>>
Expand description
Same as transmute_vec
but in case of an error it copies instead.
If it’s over the length it removes whatever doesn’t fit.
You may want to use transmute_vec_copy_enum
.