Enum cargo::util::OptVersionReq
source ·
[−]pub enum OptVersionReq {
Any,
Req(VersionReq),
Locked(Version, VersionReq),
}
Variants
Any
Req(VersionReq)
Tuple Fields
0: VersionReq
Locked(Version, VersionReq)
The exact locked version and the original version requirement.
Implementations
Gets the version to which this req is locked, if any.
Trait Implementations
Performs the conversion.
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 OptVersionReq
impl Send for OptVersionReq
impl Sync for OptVersionReq
impl Unpin for OptVersionReq
impl UnwindSafe for OptVersionReq
Blanket Implementations
Mutably borrows from an owned value. Read more