pub fn hash(&mut self, pkg: PackageId, load: &mut dyn RegistryData) -> CargoResult<&str> {
        let req = OptVersionReq::exact(pkg.version());
        let summary = self
            .summaries(pkg.name(), &req, load)?
            .next()
            .ok_or_else(|| internal(format!("no hash listed for {}", pkg)))?;
        summary
            .summary
            .checksum()
            .ok_or_else(|| internal(format!("no hash listed for {}", pkg)))
    }
/// Returns the hash listed for a specified `PackageId`.
Returns the hash listed for a specified `PackageId`.
Returns the hash listed for a specified ` PackageId ` .
pub fn hash(&mut self, pkg: PackageId, load: &mut dyn RegistryData) -> CargoResult<&str> {
        let req = OptVersionReq::exact(pkg.version());
        let summary = self
            .summaries(pkg.name(), &req, load)?
            .next()
            .ok_or_else(|| internal(format!("no hash listed for {}", pkg)))?;
        summary
            .summary
            .checksum()
            .ok_or_else(|| internal(format!("no hash listed for {}", pkg)))
    }
pub fn hash ( & mut self , pkg : PackageId , load : & mut dyn RegistryData ) -> CargoResult < & str > { let req = OptVersionReq :: exact ( pkg . version ( ) ) ; let summary = self . summaries ( pkg . name ( ) , & req , load ) ? . next ( ) . ok_or_else ( | | internal ( format ! ( " " pkg ) ) ) ? ; summary . summary . checksum ( ) . ok_or_else ( | | internal ( format ! ( " " pkg ) ) ) }
Returns the hash listed for a specified `PackageId`.
Returns the hash listed for a specified ` PackageId ` .
&mut self
pkg
PackageId
load
&mut dyn RegistryData
&mut self
pkg
PackageId
load
&mut dyn RegistryData