pub struct Database { /* private fields */ }
Expand description
The Database
contains a list of all packages that are available for
install, as well as a list of all the packages installed on the system.
It is used to calculate the dependencies of a package and for checking if
a package is installed.
Implementations§
source§impl Database
impl Database
The Database
contains a list of all packages that are available for
install, as well as a list of all the packages installed on the system.
It is used to calculate the dependencies of a package and for checking if
a package is installed.
sourcepub fn open<P: AsRef<Path>>(
installed_path: P,
pkgdepends: PackageDepends
) -> Self
pub fn open<P: AsRef<Path>>( installed_path: P, pkgdepends: PackageDepends ) -> Self
Opens a database from the specified path.
sourcepub fn is_pkg_installed(&self, pkg_name: &str) -> bool
pub fn is_pkg_installed(&self, pkg_name: &str) -> bool
Checks if a package is installed
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more