Function serialize_to

Source
pub fn serialize_to<T>(
    subject: &T,
    format: &SerializationFormat,
    writer: impl Write,
) -> Result<(), SerializationError>
where T: ?Sized + Serialize,
Expand description

A simple wrapper function that calls serialize and writes the result to writer.

This method also calls writer.flush()