Function ruma::serde::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.