Function transvec::transmute_vec_basic [−][src]
pub fn transmute_vec_basic<I: Pod, O: Pod>(
input: Vec<I>
) -> Result<Vec<O>, (Vec<I>, TransmuteError)>
Expand description
If alignment is the same this function is preferred over transmute_vec
.
Panics
Panics if the alignment is not the same. (This may be turned into a compile time error in the future, when possible without using nightly features).
Otherwise this acts exactly the same as transmute_vec
.