ruma::serde

Function slice_to_buf

Source
pub fn slice_to_buf<B>(s: &[u8]) -> B
where B: Default + BufMut,
Expand description

Converts a byte slice to a buffer by copying.