[−][src]Function rendy_util::cast_vec
pub fn cast_vec<T: Copy>(vec: Vec<T>) -> Vec<u8>
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.
pub fn cast_vec<T: Copy>(vec: Vec<T>) -> Vec<u8>
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.