pub struct PackageSort { /* private fields */ }
Expand description
Determines how to sort packages from the Cache.
Implementations§
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 Freeze for PackageSort
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