[−][src]Function rmp_serde::encode::write
pub fn write<W: ?Sized, T: ?Sized>(wr: &mut W, val: &T) -> Result<(), Error> where
W: Write,
T: Serialize,
Serialize the given data structure as MessagePack into the I/O stream. This fyunction uses compact representation - structures as arrays
Serialization can fail if T
's implementation of Serialize
decides to fail.