Function sndjvu_format::ser::to_writer

source ·
pub fn to_writer<T: Serialize + ?Sized>(
    doc: &T,
    writer: &mut (dyn Write + '_)
) -> Result<(), Error>
Available on crate feature std only.
Expand description

Serialize a document into a provided writer.

The serializer makes many small writes, so make sure that the writer is buffered.