Enum semver::ReqParseError [−][src]
pub enum ReqParseError {
InvalidVersionRequirement,
OpAlreadySet,
InvalidSigil,
VersionComponentsMustBeNumeric,
InvalidIdentifier,
MajorVersionRequired,
UnimplementedVersionRequirement,
DeprecatedVersionRequirement(VersionReq),
}
Expand description
A ReqParseError
is returned from methods which parse a string into a VersionReq
. Each
enumeration is one of the possible errors that can occur.
Variants
The given version requirement is invalid.
You have already provided an operation, such as =
, ~
, or ^
. Only use one.
The sigil you have written is not correct.
All components of a version must be numeric.
There was an error parsing an identifier.
At least a major version is required.
An unimplemented version requirement.
DeprecatedVersionRequirement(VersionReq)
This form of requirement is deprecated.
Tuple Fields of DeprecatedVersionRequirement
0: VersionReq
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 ReqParseError
impl Send for ReqParseError
impl Sync for ReqParseError
impl Unpin for ReqParseError
impl UnwindSafe for ReqParseError
Blanket Implementations
Mutably borrows from an owned value. Read more