fcode

Function to_writer

Source
pub fn to_writer<T, W>(w: &mut W, value: &T) -> Result<()>
where T: Serialize + ?Sized, W: Write,
Expand description

Serialize a value to a io::Write implementation.

Use this to extend a Vec<u8>, or feed into some compressor.