Method
new
(name: String, version: FullVersion)
Source from the content-addressed store, hash-verified
| 37 | impl PackageBase { |
| 38 | #[new] |
| 39 | fn new(name: String, version: FullVersion) -> Result<Self, crate::types::Error> { |
| 40 | let inner = alpm_srcinfo::source_info::v1::package_base::PackageBase::new_with_defaults( |
| 41 | alpm_types::Name::new(name.as_str())?, |
| 42 | version.into(), |
| 43 | ); |
| 44 | Ok(inner.into()) |
| 45 | } |
| 46 | |
| 47 | #[getter] |
| 48 | fn get_name(&self) -> String { |
Callers
nothing calls this directly
Tested by
no test coverage detected