ruma_common::serde

Function slice_to_buf

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

Converts a byte slice to a buffer by copying.