Enum semver::ReqParseError
[−]
[src]
pub enum ReqParseError {
InvalidVersionRequirement,
OpAlreadySet,
InvalidSigil,
VersionComponentsMustBeNumeric,
InvalidIdentifier,
MajorVersionRequired,
UnimplementedVersionRequirement,
}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.
Trait Implementations
impl Copy for ReqParseError[src]
impl Clone for ReqParseError[src]
fn clone(&self) -> ReqParseError[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for ReqParseError[src]
impl PartialEq for ReqParseError[src]
fn eq(&self, __arg_0: &ReqParseError) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Display for ReqParseError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more