Function ruma::serde::slice_to_buf[][src]

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

Converts a byte slice to a buffer by copying.