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

Method new

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

Source from the content-addressed store, hash-verified

12impl Source {
13 #[new]
14 fn new(source: &str) -> Result<Self, crate::types::Error> {
15 let inner = alpm_types::Source::from_str(source)?;
16 Ok(inner.into())
17 }
18
19 #[getter]
20 fn filename(&self) -> Option<&PathBuf> {

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected