pub trait HashDerivationModuloLookup {
// Required method
fn lookup_hdm(&self, drv_path: &StorePathRef<'_>) -> Option<Sha256>;
}Expand description
Lookup hash derivation modulo for a derivation.
The [hash derivation modulo] is recursive. And so to calculate the HDM of a derivation it requires the HDM for all its input derviations.
This trait exists to provide the HDM values for those input derivations to the functions that calculate the HDM.
To help with implemeting this trait lookup_fn is provided.
Required Methods§
Sourcefn lookup_hdm(&self, drv_path: &StorePathRef<'_>) -> Option<Sha256>
fn lookup_hdm(&self, drv_path: &StorePathRef<'_>) -> Option<Sha256>
Lookup the [hash derivation modulo] of the provided derivation store path.
Implementations on Foreign Types§
Source§impl HashDerivationModuloLookup for HashMap<StorePath, Sha256>
Available on crate feature hashbrown only.
impl HashDerivationModuloLookup for HashMap<StorePath, Sha256>
Available on crate feature
hashbrown only.