pub const fn as_bytes<B: ?Sized + Buf>(buf: &B) -> &[u8]
Converts a reference to a Buf into its underlying bytes.
Buf
Unlike Buf::as_bytes(), this function is const.
Buf::as_bytes()
const