simd_json::serde

Function to_writer_pretty

Source
pub fn to_writer_pretty<T, W>(writer: W, to: &T) -> Result<()>
where T: Serialize + ?Sized, W: Write,
Expand description

Write a value to a string

ยงErrors

when the data can not be written