pub fn to_writer_with_config<T, W>( value: &T, writer: W, config: Config, ) -> Result<()>where T: Serialize, W: Write,
Serialize a type into a Writer using the given configuration.