Searched refs:nv (Results 1 – 4 of 4) sorted by relevance
/development/tools/external_crates/crate_health/src/ |
D | version_match.rs | 52 for nv in vm.dest.map_field().keys() { in new() 53 vm.compatibility.insert_or_error(nv.to_owned(), None)?; in new() 56 for nv in vm.source.map_field().keys() { in new() 57 let compatibility = if let Some(dest_nv) = vm.dest.get_version_upgradable_from(nv) { in new() 67 vm.compatibility.insert_or_error(nv.to_owned(), compatibility)?; in new() 86 self.get_compatible_version(source).map(|nv| self.dest.map_field().get(nv).unwrap()) in get_compatible_item() 92 let nv = self.get_compatible_version(source)?.clone(); in get_compatible_item_mut() localVariable 93 self.dest.map_field_mut().get_mut(&nv) in get_compatible_item_mut() 97 self.dest.map_field().iter().filter(|(nv, _val)| { in superfluous() 98 self.compatibility.get(*nv).is_some_and(|compatibility| compatibility.is_none()) in superfluous() [all …]
|
D | name_and_version_map.rs | 47 for (nv, _val) in self.get_versions(other.name()) { in get_version_upgradable_from() 48 if other.is_upgradable_to(nv) { in get_version_upgradable_from() 49 best_version.replace(nv); in get_version_upgradable_from() 87 for nv in self.keys() { in num_crates() 88 seen.insert(nv.name().to_string()); in num_crates() 134 Box::new(self.iter().filter(move |(nv, _krate)| kept_keys.contains(*nv))) in filter_versions() 142 versions.into_iter().map(|(nv, _crate)| vset.insert(nv.version().clone())).count(); in crates_with_single_version() 153 versions.into_iter().map(|(nv, _crate)| vset.insert(nv.version().clone())).count(); in crates_with_multiple_versions() 164 if let Some((nv, _crate)) = versions.into_iter().last() { in most_recent_version() 165 vset.insert(nv.version().clone()); in most_recent_version() [all …]
|
D | crate_collection.rs | 77 for (nv, output) in generate_android_bps(self.crates.values())?.into_iter() { in generate_android_bps() 79 .get_mut(&nv) in generate_android_bps() 80 .ok_or(anyhow!("Failed to get crate {} {}", nv.name(), nv.version()))? in generate_android_bps()
|
D | name_and_version.rs | 51 pub fn from(nv: &impl NamedAndVersioned) -> Self { in from() 52 NameAndVersion { name: nv.name().to_string(), version: nv.version().clone() } in from()
|