Struct alpm_types::Installed
source · pub struct Installed {
name: Name,
version: Version,
architecture: Architecture,
}
Expand description
Information on an installed package in an environment
Tracks a Name
, Version
(which is guaranteed to have a Pkgrel
) and Architecture
of a package in an
environment.
§Examples
use alpm_types::Installed;
assert!(Installed::new("foo-bar-1:1.0.0-1-any").is_ok());
assert!(Installed::new("foo-bar-1:1.0.0-1").is_err());
assert!(Installed::new("foo-bar-1:1.0.0-any").is_err());
assert!(Installed::new("1:1.0.0-1-any").is_err());
Fields§
§name: Name
§version: Version
§architecture: Architecture
Implementations§
Trait Implementations§
source§impl Ord for Installed
impl Ord for Installed
source§impl PartialEq for Installed
impl PartialEq for Installed
source§impl PartialOrd for Installed
impl PartialOrd for Installed
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Installed
impl StructuralPartialEq for Installed
Auto Trait Implementations§
impl Freeze for Installed
impl RefUnwindSafe for Installed
impl Send for Installed
impl Sync for Installed
impl Unpin for Installed
impl UnwindSafe for Installed
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