pub fn decode_to_vec(encoded: &[u8], hash: &Hash) -> Result<Vec<u8>, Error>
A convenience wrapper around decode, which allocates a new Vec to hold the content.
decode
Vec