Function nix_compat::derivation::parser::from_algo_and_mode_and_digest
source · fn from_algo_and_mode_and_digest<B: AsRef<[u8]>>(
algo_and_mode: &str,
digest: B
) -> NixHashResult<CAHash>
Expand description
Consume a string containing the algo, and optionally a r:
prefix, and a digest (bytes), return a CAHash::Nar or CAHash::Flat.