/// Transform a slice of something sized into a slice of u8, for binary writing.
Transform a slice of something sized into a slice of u8, for binary writing.
Transform a slice of something sized into a slice of u8 for binary writing .
unsafe fn as_u8_slice<T: Sized>(p: &[T]) -> &[u8] {
    ::std::slice::from_raw_parts(
        p.as_ptr() as *const u8,
        ::std::mem::size_of::<T>() * p.len(),
    )
}
unsafe fn as_u8_slice < T : Sized > ( p : & [ T ] ) -> & [ u8 ] { :: std :: slice :: from_raw_parts ( p . as_ptr ( ) as * const u8 , :: std :: mem :: size_of :: < T > ( ) * p . len ( ) , ) }
Transform a slice of something sized into a slice of u8, for binary writing.
Transform a slice of something sized into a slice of u8 for binary writing .
p
&[T]