Struct semver::Comparator [−][src]
pub struct Comparator {
pub op: Op,
pub major: u64,
pub minor: Option<u64>,
pub patch: Option<u64>,
pub pre: Prerelease,
}
Expand description
A pair of comparison operator and partial version, such as >=1.2
. Forms
one piece of a VersionReq.
Fields
op: Op
major: u64
minor: Option<u64>
patch: Option<u64>
Patch is only allowed if minor is Some.
pre: Prerelease
Non-empty pre-release is only allowed if patch is Some.
Implementations
Trait Implementations
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Comparator
impl Send for Comparator
impl Sync for Comparator
impl Unpin for Comparator
impl UnwindSafe for Comparator
Blanket Implementations
Mutably borrows from an owned value. Read more