MCPcopy Create free account
hub / github.com/archlinux/alpm / new

Method new

python-alpm/src/types/requirement.rs:14–16  ·  view source on GitHub ↗
(comparison: VersionComparison, version: crate::types::version::Version)

Source from the content-addressed store, hash-verified

12impl VersionRequirement {
13 #[new]
14 fn new(comparison: VersionComparison, version: crate::types::version::Version) -> Self {
15 alpm_types::VersionRequirement::new(comparison.into(), version.into()).into()
16 }
17
18 #[staticmethod]
19 fn from_str(req: &str) -> Result<Self, crate::types::Error> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected