ruma_common::serde

Function 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.