pub fn to_writer<T, W>(w: &mut W, value: &T) -> Result<()>where T: Serialize + ?Sized, W: Write,
Serialize a value to a io::Write implementation.
io::Write
Use this to extend a Vec<u8>, or feed into some compressor.
Vec<u8>