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

Method new

python-alpm/src/srcinfo/source_info/v1/mod.rs:18–21  ·  view source on GitHub ↗
(srcinfo: &str)

Source from the content-addressed store, hash-verified

16impl SourceInfoV1 {
17 #[new]
18 fn new(srcinfo: &str) -> Result<Self, crate::srcinfo::error::Error> {
19 let inner = alpm_srcinfo::SourceInfoV1::from_string(srcinfo)?;
20 Ok(inner.into())
21 }
22
23 #[staticmethod]
24 fn from_file(path: PathBuf) -> Result<Self, crate::srcinfo::error::Error> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected