Enum semver::ReqParseError
source · 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§
InvalidVersionRequirement
The given version requirement is invalid.
OpAlreadySet
You have already provided an operation, such as =
, ~
, or ^
. Only use one.
InvalidSigil
The sigil you have written is not correct.
VersionComponentsMustBeNumeric
All components of a version must be numeric.
InvalidIdentifier
There was an error parsing an identifier.
MajorVersionRequired
At least a major version is required.
UnimplementedVersionRequirement
An unimplemented version requirement.
DeprecatedVersionRequirement(VersionReq)
This form of requirement is deprecated.
Trait Implementations§
source§impl Clone for ReqParseError
impl Clone for ReqParseError
source§fn clone(&self) -> ReqParseError
fn clone(&self) -> ReqParseError
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 ReqParseError
impl Debug for ReqParseError
source§impl Display for ReqParseError
impl Display for ReqParseError
source§impl Error for ReqParseError
impl Error for ReqParseError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<String> for ReqParseError
impl From<String> for ReqParseError
source§fn from(other: String) -> ReqParseError
fn from(other: String) -> ReqParseError
Converts to this type from the input type.
source§impl PartialEq<ReqParseError> for ReqParseError
impl PartialEq<ReqParseError> for ReqParseError
source§fn eq(&self, other: &ReqParseError) -> bool
fn eq(&self, other: &ReqParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.