(&self)
| 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() |