Function ruma_common::serde::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.
pub fn slice_to_buf<B: Default + BufMut>(s: &[u8]) -> B
Converts a byte slice to a buffer by copying.