pub fn to_writer<W, T>(writer: &mut W, value: &T) -> Result<(), Error<Error>> where W: Write, T: Serialize,
Serializes a value to a writer.