as_buf_mut

Function 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().