pub fn to_writer<W, T>(writer: W, value: &T) -> Result<(), W::Error>where W: SerWrite, <W as SerWrite>::Error: Display + Debug, T: Serialize + ?Sized,
Serialize value as a MessagePack message to a SerWrite implementation.
value
SerWrite
Serialize data structures as maps with field and enum variants as indexes.