pub fn entry_for_package_id(&self, package_id: &str) -> Option<&CrateCatalogEntry> {
    self
      .package_id_to_entries_idx
      .get(package_id)
      // UNWRAP: Indexes guaranteed to be valid -- structure is immutable
      .map(|entry_idx| self.entries.get(*entry_idx).unwrap())
  }
/** Finds and returns the catalog entry with the given package id if present. */
Finds and returns the catalog entry with the given package id if present.
Finds and returns the catalog entry with the given package id if present .
pub fn entry_for_package_id(&self, package_id: &str) -> Option<&CrateCatalogEntry> {
    self
      .package_id_to_entries_idx
      .get(package_id)
      // UNWRAP: Indexes guaranteed to be valid -- structure is immutable
      .map(|entry_idx| self.entries.get(*entry_idx).unwrap())
  }
pub fn entry_for_package_id ( & self , package_id : & str ) -> Option < & CrateCatalogEntry > { self . package_id_to_entries_idx . get ( package_id ) // UNWRAP: Indexes guaranteed to be valid -- structure is immutable . map ( | entry_idx | self . entries . get ( * entry_idx ) . unwrap ( ) ) }
Finds and returns the catalog entry with the given package id if present.
Finds and returns the catalog entry with the given package id if present .
&self
package_id
&str