Skip to main content

drain_to_writer

Function drain_to_writer 

Source
pub fn drain_to_writer<T, W>(encoder: &mut T, writer: W) -> Result<(), Error>
where T: Encoder + ?Sized, W: Write,
Expand description

Drains the output of an Encoder to a standard I/O writer.

See encode_to_writer for more information.

ยงErrors

Returns any I/O error encountered while writing to the writer.