Home
last modified time | relevance | path

Searched refs:VersionReq (Results 1 – 13 of 13) sorted by relevance

/external/rust/crates/semver/tests/node/
Dmod.rs8 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/
Dmod.rs3 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/
Dlib.rs189 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()
Dserde.rs1 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()
Dimpls.rs3 use crate::{BuildMetadata, Comparator, Prerelease, VersionReq};
148 impl FromIterator<Comparator> for VersionReq { implementation
154 VersionReq { comparators } in from_iter()
Dparse.rs4 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()
Ddisplay.rs1 use crate::{BuildMetadata, Comparator, Op, Prerelease, Version, VersionReq};
33 impl Display for VersionReq { implementation
Deval.rs1 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/
Dtest_version_req.rs16 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()
Dtest_autotrait.rs12 assert_send_sync::<semver::VersionReq>(); in test()
/external/rust/crates/semver/benches/
Dparse.rs5 use semver::{Prerelease, Version, VersionReq};
23 b.iter(|| black_box(text).parse::<VersionReq>().unwrap()); in parse_version_req()
/external/rust/crates/nix/test/common/
Dmod.rs117 use semver::{Version, VersionReq};
119 let version_requirement = VersionReq::parse($version_requirement)
/external/rust/crates/semver/
DREADME.md27 use semver::{BuildMetadata, Prerelease, Version, VersionReq};
30 let req = VersionReq::parse(">=1.2.3, <1.8.0").unwrap();