[−][src]Function rendy::util::cast_cow
pub fn cast_cow<T>(cow: Cow<[T]>) -> Cow<[u8]> where
T: Copy,
Cast cow
of some arbitrary type into cow
of bytes.
Can lead to UB if allocator changes. Use with caution.
TODO: Replace with something safer.