simd_json::serde

Function to_vec_pretty

source
pub fn to_vec_pretty<T>(to: &T) -> Result<Vec<u8>>
where T: Serialize + ?Sized,
Expand description

Write a value to a vector

ยงErrors

when the data can not be written