Trait tvix_store::nar::hashing_reader::ToHash
source · trait ToHash: DynDigest + Send {
// Required method
fn consume(self: Box<Self>) -> NixHash;
}
Expand description
Utility trait that simplifies digesting different hashes.
The main benefit is that each corresponding impl produces its corresponding NixHash value as opposed to a lower level byte slice.