Enum semver_parser::parser::Error [−][src]
pub enum Error<'input> {
UnexpectedEnd,
UnexpectedToken(Token<'input>),
Lexer(Error),
MoreInput(Vec<Token<'input>>),
EmptyPredicate,
EmptyRange,
}Variants
UnexpectedEndNeeded 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.
EmptyPredicateEncountered empty predicate in a set of predicates.
EmptyRangeEncountered an empty range.
Trait Implementations
impl<'input> Debug for Error<'input>[src]
impl<'input> Debug for Error<'input>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'input> PartialEq for Error<'input>[src]
impl<'input> PartialEq for Error<'input>fn eq(&self, other: &Error<'input>) -> bool[src]
fn eq(&self, other: &Error<'input>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Error<'input>) -> bool[src]
fn ne(&self, other: &Error<'input>) -> boolThis method tests for !=.
impl<'input> Eq for Error<'input>[src]
impl<'input> Eq for Error<'input>impl<'input> PartialOrd for Error<'input>[src]
impl<'input> PartialOrd for Error<'input>fn partial_cmp(&self, other: &Error<'input>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Error<'input>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Error<'input>) -> bool[src]
fn lt(&self, other: &Error<'input>) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Error<'input>) -> bool[src]
fn le(&self, other: &Error<'input>) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Error<'input>) -> bool[src]
fn gt(&self, other: &Error<'input>) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Error<'input>) -> bool[src]
fn ge(&self, other: &Error<'input>) -> boolThis 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]
impl<'input> Ord for Error<'input>fn cmp(&self, other: &Error<'input>) -> Ordering[src]
fn cmp(&self, other: &Error<'input>) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<'input> From<Error> for Error<'input>[src]
impl<'input> From<Error> for Error<'input>impl<'input> Display for Error<'input>[src]
impl<'input> Display for Error<'input>fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'input> From<Error<'input>> for String[src]
impl<'input> From<Error<'input>> for Stringimpl for backwards compatibility.