Function fourleaf::ser::to_writer
[−]
[src]
pub fn to_writer<T: Serialize, W: Write>(writer: W, t: T) -> Result<()>
Serialises t
and writes it to writer
.
This can be called multiple times in succession to write multiple values, which can later be read by sequential calls to the corresponding deserialisation functions.
This creates a Stream
with its default properties. If this is not
desired, create a Stream
manually and pass it to to_stream
.