Function buf_trait::as_buf_mut

source ·
pub unsafe fn as_buf_mut<B: ?Sized + Buf>(bytes: &mut [u8]) -> &mut B
Expand description

Converts a mutable byte slice to a reference to a Buf.

Safety

See Buf::from_bytes().