Add a new Digest.result_bytes convenience function.
auto merge of #9345 : Dretch/rust/digest-result-bytes, r=cmr

I would find this function useful.