Enum reproto_semver::parser::Error [] [src]

pub enum Error<'input> {
    UnexpectedEnd,
    UnexpectedToken(Token<'input>),
    Lexer(Error),
    MoreInput(Vec<Token<'input>>),
    EmptyPredicate,
    EmptyRange,
}

Variants

Needed more tokens for parsing, but none are available.

Unexpected token.

An error occurred in the lexer.

More input available.

Encountered empty predicate in a set of predicates.

Encountered an empty range.

Trait Implementations

impl<'input> Clone for Error<'input>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'input> Debug for Error<'input>
[src]

[src]

Formats the value using the given formatter.

impl<'input> PartialEq for Error<'input>
[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<'input> Eq for Error<'input>
[src]

impl<'input> PartialOrd for Error<'input>
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'input> Ord for Error<'input>
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<'input> Display for Error<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> Error for Error<'input>
[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<'input> From<Error> for Error<'input>
[src]

[src]

Performs the conversion.