Function serde_ipld_dagcbor::ser::to_vec
source ยท pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, EncodeError<TryReserveError>>
Expand description
Serializes a value to a vector.
pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, EncodeError<TryReserveError>>
Serializes a value to a vector.