/external/rust/crates/semver/tests/node/ |
D | mod.rs | 8 pub(super) struct VersionReq(semver::VersionReq); struct 10 impl VersionReq { implementation 11 pub(super) const STAR: Self = VersionReq(semver::VersionReq::STAR); 34 impl Display for VersionReq { implementation 41 pub(super) fn req(text: &str) -> VersionReq { in req() argument 42 VersionReq(crate::util::req(text)) in req()
|
/external/rust/crates/semver/tests/util/ |
D | mod.rs | 3 use semver::{BuildMetadata, Error, Prerelease, Version, VersionReq}; 17 pub(super) fn req(text: &str) -> VersionReq { in req() argument 18 VersionReq::parse(text).unwrap() in req() 23 VersionReq::parse(text).unwrap_err() in req_err()
|
/external/rust/crates/semver/src/ |
D | lib.rs | 189 pub struct VersionReq { struct 436 impl VersionReq { implementation 451 pub const STAR: Self = VersionReq { 471 VersionReq::from_str(text) in parse() 483 impl Default for VersionReq { implementation 485 VersionReq::STAR in default()
|
D | serde.rs | 1 use crate::{Comparator, Version, VersionReq}; 15 impl Serialize for VersionReq { implementation 59 impl<'de> Deserialize<'de> for VersionReq { implementation 67 type Value = VersionReq; in deserialize()
|
D | impls.rs | 3 use crate::{BuildMetadata, Comparator, Prerelease, VersionReq}; 148 impl FromIterator<Comparator> for VersionReq { implementation 154 VersionReq { comparators } in from_iter()
|
D | parse.rs | 4 use crate::{BuildMetadata, Comparator, Op, Prerelease, Version, VersionReq}; 84 impl FromStr for VersionReq { implementation 93 return Ok(VersionReq::STAR); in from_str() 95 return Ok(VersionReq { in from_str() 109 Ok(VersionReq { comparators }) in from_str()
|
D | display.rs | 1 use crate::{BuildMetadata, Comparator, Op, Prerelease, Version, VersionReq}; 33 impl Display for VersionReq { implementation
|
D | eval.rs | 1 use crate::{Comparator, Op, Version, VersionReq}; 3 pub(crate) fn matches_req(req: &VersionReq, ver: &Version) -> bool { in matches_req() argument
|
/external/rust/crates/semver/tests/ |
D | test_version_req.rs | 16 use node::{req, VersionReq}; 18 use semver::VersionReq; 21 fn assert_match_all(req: &VersionReq, versions: &[&str]) { in assert_match_all() argument 29 fn assert_match_none(req: &VersionReq, versions: &[&str]) { in assert_match_none() argument 47 let ref r = VersionReq::default(); in test_default() 48 assert_eq!(r, &VersionReq::STAR); in test_default() 320 let ref r = VersionReq::STAR; in test_any() 322 let ref r = VersionReq { in test_any()
|
D | test_autotrait.rs | 12 assert_send_sync::<semver::VersionReq>(); in test()
|
/external/rust/crates/semver/benches/ |
D | parse.rs | 5 use semver::{Prerelease, Version, VersionReq}; 23 b.iter(|| black_box(text).parse::<VersionReq>().unwrap()); in parse_version_req()
|
/external/rust/crates/nix/test/common/ |
D | mod.rs | 117 use semver::{Version, VersionReq}; 119 let version_requirement = VersionReq::parse($version_requirement)
|
/external/rust/crates/semver/ |
D | README.md | 27 use semver::{BuildMetadata, Prerelease, Version, VersionReq}; 30 let req = VersionReq::parse(">=1.2.3, <1.8.0").unwrap();
|