Function rmp_serde::encode::to_vec
[−]
[src]
pub fn to_vec<T: ?Sized>(val: &T) -> Result<Vec<u8>, Error> where T: Serialize
Serialize the given data structure as a MessagePack byte vector.
Serialization can fail if T
's implementation of Serialize
decides to fail.