Home
last modified time | relevance | path

Searched refs:NameAndVersion (Results 1 – 7 of 7) sorted by relevance

/development/tools/external_crates/crate_health/src/
Dname_and_version_map.rs21 use crate::{CrateError, IsUpgradableTo, NameAndVersion, NamedAndVersioned};
26 fn map_field(&self) -> &BTreeMap<NameAndVersion, Self::Value>; in map_field() argument
27 fn map_field_mut(&mut self) -> &mut BTreeMap<NameAndVersion, Self::Value>; in map_field_mut() argument
29 fn insert_or_error(&mut self, key: NameAndVersion, val: Self::Value) -> Result<(), CrateError>; in insert_or_error() argument
37 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a Self::Value)> + 'a>; in get_versions()
41 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a mut Self::Value)> + 'a>; in get_versions_mut()
45 ) -> Option<&NameAndVersion> { in get_version_upgradable_from() argument
57 F: Fn(&mut dyn Iterator<Item = (&'b NameAndVersion, &'b Self::Value)>) -> HashSet<Version> in filter_versions()
62 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a Self::Value)> + 'a>; in filter_versions()
65 impl<ValueType> NameAndVersionMap for BTreeMap<NameAndVersion, ValueType> {
[all …]
Dname_and_version.rs36 pub struct NameAndVersion { struct
47 impl NameAndVersion { implementation
49 NameAndVersion { name, version } in new()
52 NameAndVersion { name: nv.name().to_string(), version: nv.version().clone() } in from()
55 NameAndVersion { name, version: MIN_VERSION.clone() } in min_version()
59 Ok(NameAndVersion::new(name.to_string(), Version::parse(version)?)) in try_from_str()
63 impl NamedAndVersioned for NameAndVersion { implementation
94 impl<'a> Borrow<dyn NamedAndVersioned + 'a> for NameAndVersion { implementation
134 impl<'a> IsUpgradableTo for NameAndVersion {} implementation
173 let nvp = NameAndVersion::new("foo".to_string(), version); in test_name_and_version()
Dversion_match.rs20 generate_android_bps, CrateCollection, Migratable, NameAndVersion, NameAndVersionMap,
45 compatibility: BTreeMap<NameAndVersion, Option<NameAndVersion>>,
79 ) -> Option<&NameAndVersion> { in get_compatible_version() argument
96 pub fn superfluous(&self) -> impl Iterator<Item = (&NameAndVersion, &CollectionType::Value)> { in superfluous()
206 results.insert_or_error(NameAndVersion::from(pair.dest), pair.diff_android_bps()?)?; in diff_android_bps()
245 let equal = NameAndVersion::try_from_str("equal", "2.3.4")?; in test_version_map()
246 let compatible_old = NameAndVersion::try_from_str("compatible", "1.2.3")?; in test_version_map()
247 let incompatible_old = NameAndVersion::try_from_str("incompatible", "1.1.1")?; in test_version_map()
248 let downgrade_old = NameAndVersion::try_from_str("downgrade", "2.2.2")?; in test_version_map()
249 let missing = NameAndVersion::try_from_str("missing", "1.0.0")?; in test_version_map()
[all …]
Dcrate_collection.rs27 android_bp::generate_android_bps, Crate, CrateError, NameAndVersion, NameAndVersionMap,
35 crates: BTreeMap<NameAndVersion, Crate>,
49 NameAndVersion::new(krate.name().to_string(), krate.version().clone()), in add_from()
Dandroid_bp.rs27 use crate::{Crate, NameAndVersion, NameAndVersionMap, NamedAndVersioned, RepoPath};
31 ) -> Result<BTreeMap<NameAndVersion, Output>> { in generate_android_bps() argument
49 results.insert_or_error(NameAndVersion::new(crate_name, crate_version), result?)?; in generate_android_bps()
Dlib.rs47 IsUpgradableTo, NameAndVersion, NameAndVersionRef, NamedAndVersioned,
/development/tools/external_crates/crate_health_proc_macros/src/
Dlib.rs46 fn map_field(&self) -> &BTreeMap<NameAndVersion, Self::Value> { in expand()
50 fn map_field_mut(&mut self) -> &mut BTreeMap<NameAndVersion, Self::Value> { in expand()
54 … fn insert_or_error(&mut self, key: NameAndVersion, val: Self::Value) -> Result<(), CrateError> { in expand()
62 …ons<'a, 'b>(&'a self, name: &'b str) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a Self::Val… in expand()
66 …'a, 'b>(&'a mut self, name: &'b str) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a mut Self:… in expand()
70 …fn filter_versions<'a: 'b, 'b, F: Fn(&mut dyn Iterator<Item = (&'b NameAndVersion, &'b Self::Value… in expand()
74 ) -> Box<dyn Iterator<Item =(&'a NameAndVersion, &'a Self::Value)> + 'a> { in expand()