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

Method location

python-alpm/src/types/source.rs:33–38  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31
32 #[getter]
33 fn location(&self) -> Option<&PathBuf> {
34 match &self.0 {
35 alpm_types::Source::File { location, .. } => Some(location),
36 alpm_types::Source::SourceUrl { .. } => None,
37 }
38 }
39
40 fn __str__(&self) -> String {
41 self.0.to_string()

Callers 1

__repr__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected