logo
pub fn json_to_buf<B: Default + BufMut, T: Serialize>(val: &T) -> Result<B>
Expand description

Creates a buffer and writes a serializable value to it.