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

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.

Trait Implementations

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, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for ReqParseError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 Copy for ReqParseError
[src]

impl Display for ReqParseError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

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