[][src]Enum semver_parser::parser::Error

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

Variants

UnexpectedEnd

Needed more tokens for parsing, but none are available.

UnexpectedToken(Token<'input>)

Unexpected token.

Lexer(Error)

An error occurred in the lexer.

MoreInput(Vec<Token<'input>>)

More input available.

EmptyPredicate

Encountered empty predicate in a set of predicates.

EmptyRange

Encountered an empty range.

Trait Implementations

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

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

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

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

impl for backwards compatibility.

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

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

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

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

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

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

Auto Trait Implementations

impl<'input> RefUnwindSafe for Error<'input>

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

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

impl<'input> Unpin for Error<'input>

impl<'input> UnwindSafe for Error<'input>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.