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

Method derive_from_str

python-alpm/src/srcinfo/schema.rs:23–26  ·  view source on GitHub ↗
(srcinfo: &str)

Source from the content-addressed store, hash-verified

21
22 #[staticmethod]
23 fn derive_from_str(srcinfo: &str) -> Result<Self, crate::srcinfo::error::Error> {
24 let inner = alpm_srcinfo::SourceInfoSchema::derive_from_str(srcinfo)?;
25 Ok(inner.into())
26 }
27
28 #[staticmethod]
29 fn derive_from_file(path: std::path::PathBuf) -> Result<Self, crate::srcinfo::error::Error> {

Callers 3

test_derive_from_strFunction · 0.45
test_version_consistencyFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_derive_from_strFunction · 0.36
test_version_consistencyFunction · 0.36