pub fn to_writer<W>(writer: W, value: &impl Serialize) -> Result<()>where W: Write,
serde
Serialize a value into a given writer.