pub fn to_vec_pretty<T>(to: &T) -> Result<Vec<u8>> where
    T: Serialize + ?Sized
Expand description

Write a value to a vector

Errors

when the data can not be written