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