pub fn serialize_to<T>(
subject: &T,
format: &SerializationFormat,
writer: impl Write,
) -> Result<(), SerializationError>
Expand description
A simple wrapper function that calls serialize
and writes the result to writer
.
This method also calls writer.flush()