Struct rust_apt::cache::PackageSort
source · pub struct PackageSort {
pub names: bool,
pub upgradable: Sort,
pub virtual_pkgs: Sort,
pub installed: Sort,
pub auto_installed: Sort,
pub auto_removable: Sort,
}Fields§
§names: bool§upgradable: Sort§virtual_pkgs: Sort§installed: Sort§auto_installed: Sort§auto_removable: SortImplementations§
source§impl PackageSort
impl PackageSort
sourcepub fn upgradable(self) -> Self
pub fn upgradable(self) -> Self
Only packages that are upgradable will be included.
sourcepub fn not_upgradable(self) -> Self
pub fn not_upgradable(self) -> Self
Only packages that are NOT upgradable will be included.
sourcepub fn include_virtual(self) -> Self
pub fn include_virtual(self) -> Self
Virtual packages will be included.
sourcepub fn only_virtual(self) -> Self
pub fn only_virtual(self) -> Self
Only Virtual packages will be included.
sourcepub fn not_installed(self) -> Self
pub fn not_installed(self) -> Self
Only packages that are NOT installed will be included.
sourcepub fn auto_installed(self) -> Self
pub fn auto_installed(self) -> Self
Only packages that are auto installed will be included.
sourcepub fn manually_installed(self) -> Self
pub fn manually_installed(self) -> Self
Only packages that are manually installed will be included.
sourcepub fn auto_removable(self) -> Self
pub fn auto_removable(self) -> Self
Only packages that are auto removable will be included.
sourcepub fn not_auto_removable(self) -> Self
pub fn not_auto_removable(self) -> Self
Only packages that are NOT auto removable will be included.
Trait Implementations§
source§impl Default for PackageSort
impl Default for PackageSort
source§fn default() -> PackageSort
fn default() -> PackageSort
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PackageSort
impl Send for PackageSort
impl Sync for PackageSort
impl Unpin for PackageSort
impl UnwindSafe for PackageSort
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