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

Method package_info

alpm-package/src/input.rs:540–542  ·  view source on GitHub ↗

Returns a reference to the [`PackageInfo`] data of the [`PackageInput`]. # Note The [`PackageInfo`] data relates directly to an on-disk file tracked by the [`PackageInput`]. This method provides access to the data as present during the creation of the [`PackageInput`]. While the data can be guaranteed to be correct, the on-disk file may have changed between creation of the [`PackageInput`] and t

(&self)

Source from the content-addressed store, hash-verified

538 /// of the [`PackageInput`]. While the data can be guaranteed to be correct, the on-disk
539 /// file may have changed between creation of the [`PackageInput`] and the call of this method.
540 pub fn package_info(&self) -> &PackageInfo {
541 &self.package_info
542 }
543
544 /// Returns a reference to the [`Mtree`] data of the [`PackageInput`].
545 ///

Callers 2

fromMethod · 0.80

Calls

no outgoing calls

Tested by 1