[][src]Function rustt::to_vec

pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, Error> where
    T: Serialize

Serialize T into a byte vector.

Errors

This only errors when T's implementation of Serialize decides to fail.