simd_json::serde

Function to_string_pretty

Source
pub fn to_string_pretty<T>(to: &T) -> Result<String>
where T: Serialize + ?Sized,
Expand description

Write a value to a string

ยงErrors

when the data can not be written