pub fn to_writer<W, T>(writer: &mut W, value: &T) -> Result<()>where
    W: Write,
    T: Serialize,
Expand description

Convenience function, creates serializer and uses it to write the given value to the writer