Function ruma_common::serde::json_to_buf

source ·
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.