Enum semver_parser::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> Debug for Error<'input>
[src]

Formats the value using the given formatter. Read more

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

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

This method tests for !=.

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

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

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

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

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

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

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]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

Performs the conversion.

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

Formats the value using the given formatter. Read more

impl<'input> From<Error<'input>> for String
[src]

impl for backwards compatibility.

Performs the conversion.

Auto Trait Implementations

impl<'input> Send for Error<'input>

impl<'input> Sync for Error<'input>