pub const unsafe fn as_buf<B: ?Sized + Buf>(bytes: &[u8]) -> &BExpand description
Converts a byte slice to a reference to a Buf.
Unlike Buf::from_bytes(), this function is const.
ยงSafety
See Buf::from_bytes().
pub const unsafe fn as_buf<B: ?Sized + Buf>(bytes: &[u8]) -> &BConverts a byte slice to a reference to a Buf.
Unlike Buf::from_bytes(), this function is const.
See Buf::from_bytes().