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

Method into_reader

alpm-package/src/package.rs:1101–1103  ·  view source on GitHub ↗

Creates a [`PackageReader`] for the package. Convenience wrapper for [`PackageReader::try_from`]. # Errors Returns an error if `self` cannot be converted into a [`PackageReader`].

(self)

Source from the content-addressed store, hash-verified

1099 ///
1100 /// Returns an error if `self` cannot be converted into a [`PackageReader`].
1101 pub fn into_reader<'c>(self) -> Result<PackageReader<'c>, crate::Error> {
1102 PackageReader::try_from(self)
1103 }
1104}
1105
1106impl TryFrom<&Path> for Package {

Callers 1

extract_elf_sonamesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected