Enum semver::ReqParseError
[−]
[src]
pub enum ReqParseError { InvalidVersionRequirement, OpAlreadySet, InvalidSigil, VersionComponentsMustBeNumeric, InvalidIdentifier, MajorVersionRequired, UnimplementedVersionRequirement, DeprecatedVersionRequirement(VersionReq), }
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
impl Clone for ReqParseError
[src]
fn clone(&self) -> ReqParseError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ReqParseError
[src]
impl PartialEq for ReqParseError
[src]
fn eq(&self, __arg_0: &ReqParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReqParseError) -> bool
This method tests for !=
.
impl Display for ReqParseError
[src]
impl Error for ReqParseError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<String> for ReqParseError
[src]
fn from(other: String) -> ReqParseError
Performs the conversion.