pub fn ref_to_bytes<T>(data: &T) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Convert the given reference of type T to a u8 slice.
T
u8