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

The given version requirement is invalid.

You have already provided an operation, such as =, ~, or ^. Only use one.

The sigil you have written is not correct.

All components of a version must be numeric.

There was an error parsing an identifier.

At least a major version is required.

An unimplemented version requirement.

This form of requirement is deprecated.

Trait Implementations

impl Clone for ReqParseError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ReqParseError
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for ReqParseError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Display for ReqParseError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for ReqParseError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl From<String> for ReqParseError
[src]

[src]

Performs the conversion.