[]Function amethyst_rendy::rendy::util::cast_vec

pub fn cast_vec<T>(vec: Vec<T>) -> Vec<u8> where
    T: Copy

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.