Home
last modified time | relevance | path

Searched refs:try_from_str (Results 1 – 3 of 3) sorted by relevance

/development/tools/external_crates/crate_health/src/
Dname_and_version_map.rs176 test_map.insert_or_error(NameAndVersion::try_from_str(name, version)?, val)?; in try_name_version_map_from_iter()
211 let foo1 = NameAndVersion::try_from_str("foo", "1.2.3")?; in test_name_and_version_map_nonempty()
212 let foo2 = NameAndVersion::try_from_str("foo", "2.3.4")?; in test_name_and_version_map_nonempty()
213 let bar = NameAndVersion::try_from_str("bar", "1.0.0")?; in test_name_and_version_map_nonempty()
214 let wrong_name = NameAndVersion::try_from_str("baz", "1.2.3")?; in test_name_and_version_map_nonempty()
215 let wrong_version = NameAndVersion::try_from_str("foo", "1.0.0")?; in test_name_and_version_map_nonempty()
242 test_map.get_version_upgradable_from(&NameAndVersion::try_from_str("foo", "1.2.2")?), in test_name_and_version_map_nonempty()
270 let foo1 = NameAndVersion::try_from_str("foo", "1.2.3")?; in test_filter_versions()
271 let foo2 = NameAndVersion::try_from_str("foo", "2.3.4")?; in test_filter_versions()
272 let bar = NameAndVersion::try_from_str("bar", "1.0.0")?; in test_filter_versions()
Dversion_match.rs245 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()
251 let compatible_new = NameAndVersion::try_from_str("compatible", "1.2.4")?; in test_version_map()
252 let incompatible_new = NameAndVersion::try_from_str("incompatible", "2.0.0")?; in test_version_map()
253 let downgrade_new = NameAndVersion::try_from_str("downgrade", "2.2.1")?; in test_version_map()
254 let superfluous = NameAndVersion::try_from_str("superfluous", "1.0.0")?; in test_version_map()
Dname_and_version.rs58 pub fn try_from_str(name: &str, version: &str) -> Result<Self> { in try_from_str() method