Function fyrox_core::transmute_vec_as_bytes
source · pub fn transmute_vec_as_bytes<T: Copy>(vec: Vec<T>) -> Vec<u8>
Expand description
Takes a vector of trivially-copyable values and turns it into a vector of bytes.
pub fn transmute_vec_as_bytes<T: Copy>(vec: Vec<T>) -> Vec<u8>
Takes a vector of trivially-copyable values and turns it into a vector of bytes.