Struct alpm_types::BuildToolVer
source · pub struct BuildToolVer {
version: Version,
architecture: Architecture,
}
Expand description
The version and architecture of a build tool
BuildToolVer
is used in conjunction with BuildTool
to denote the specific build tool a package is built with.
A BuildToolVer
wraps a Version
(that is guaranteed to have a Pkgrel
) and an Architecture
.
§Examples
use alpm_types::BuildToolVer;
assert!(BuildToolVer::new("1-1-any").is_ok());
assert!(BuildToolVer::new("1").is_err());
assert!(BuildToolVer::new("1-1-foo").is_err());
Fields§
§version: Version
§architecture: Architecture
Implementations§
source§impl BuildToolVer
impl BuildToolVer
Trait Implementations§
source§impl Clone for BuildToolVer
impl Clone for BuildToolVer
source§fn clone(&self) -> BuildToolVer
fn clone(&self) -> BuildToolVer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BuildToolVer
impl Debug for BuildToolVer
source§impl Display for BuildToolVer
impl Display for BuildToolVer
source§impl FromStr for BuildToolVer
impl FromStr for BuildToolVer
source§impl Ord for BuildToolVer
impl Ord for BuildToolVer
source§fn cmp(&self, other: &BuildToolVer) -> Ordering
fn cmp(&self, other: &BuildToolVer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BuildToolVer
impl PartialEq for BuildToolVer
source§fn eq(&self, other: &BuildToolVer) -> bool
fn eq(&self, other: &BuildToolVer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BuildToolVer
impl PartialOrd for BuildToolVer
source§fn partial_cmp(&self, other: &BuildToolVer) -> Option<Ordering>
fn partial_cmp(&self, other: &BuildToolVer) -> Option<Ordering>
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 BuildToolVer
impl StructuralPartialEq for BuildToolVer
Auto Trait Implementations§
impl Freeze for BuildToolVer
impl RefUnwindSafe for BuildToolVer
impl Send for BuildToolVer
impl Sync for BuildToolVer
impl Unpin for BuildToolVer
impl UnwindSafe for BuildToolVer
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