Function bao::encode::encode_to_vec[][src]

pub fn encode_to_vec(input: &[u8]) -> (Hash, Vec<u8>)

A convenience wrapper around encode, which allocates a new Vec to hold the encoding.