slice_as_bytes

Function slice_as_bytes 

Source
pub unsafe fn slice_as_bytes<T>(slice: &[T]) -> &[u8] 
Expand description

§Safety

The type T should be plain old data so there is no worry about Drop behavior in the transmutation.