pub fn to_vec<T: Serialize + ?Sized>(value: &T) -> Result<Vec<u8>, BsatnError>
Serialize value into a Vec<u8> in the BSATN format.
value
Vec<u8>