Function transvec::transmute_vec_may_copy [−][src]
pub fn transmute_vec_may_copy<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
.