rendy_util

Function cast_vec

Source
pub fn cast_vec<T: Copy>(vec: Vec<T>) -> Vec<u8>
Expand description

Cast vec of some arbitrary type into vec of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer.