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

Method new

python-alpm/src/types/version.rs:14–16  ·  view source on GitHub ↗
(pkgver: &str)

Source from the content-addressed store, hash-verified

12impl PackageVersion {
13 #[new]
14 fn new(pkgver: &str) -> Result<Self, crate::types::Error> {
15 Ok(alpm_types::PackageVersion::new(pkgver.to_string())?.into())
16 }
17
18 pub fn __repr__(&self) -> String {
19 format!("PackageVersion('{}')", self.0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected