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
InvalidVersionRequirementThe given version requirement is invalid.
OpAlreadySetYou have already provided an operation, such as =, ~, or ^. Only use one.
InvalidSigilThe sigil you have written is not correct.
VersionComponentsMustBeNumericAll components of a version must be numeric.
InvalidIdentifierThere was an error parsing an identifier.
MajorVersionRequiredAt least a major version is required.
UnimplementedVersionRequirementAn 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.