Enum semver::ReqParseError [] [src]

pub enum ReqParseError {
    InvalidVersionRequirement,
    OpAlreadySet,
    InvalidSigil,
    VersionComponentsMustBeNumeric,
    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.

MajorVersionRequired

At least a major version is required.

UnimplementedVersionRequirement

An unimplemented version requirement.

Trait Implementations

impl Display for ReqParseError

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

impl Error for ReqParseError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl PartialEq for ReqParseError

fn eq(&self, __arg_0: &ReqParseError) -> bool

fn ne(&self, __arg_0: &ReqParseError) -> bool

impl Debug for ReqParseError

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

impl Clone for ReqParseError

fn clone(&self) -> ReqParseError

fn clone_from(&mut self, source: &Self)

impl Copy for ReqParseError