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

Method derive_from_file

python-alpm/src/srcinfo/schema.rs:29–32  ·  view source on GitHub ↗
(path: std::path::PathBuf)

Source from the content-addressed store, hash-verified

27
28 #[staticmethod]
29 fn derive_from_file(path: std::path::PathBuf) -> Result<Self, crate::srcinfo::error::Error> {
30 let inner = alpm_srcinfo::SourceInfoSchema::derive_from_file(&path)?;
31 Ok(inner.into())
32 }
33
34 #[getter]
35 fn version(&self) -> SchemaVersion {

Calls

no outgoing calls