pub fn to_writer<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