Struct combine::ParseError [] [src]

pub struct ParseError<P: Stream> {
    pub position: P::Item::Position,
    pub errors: Vec<Error<P::Item, P::Range>>,
}

Struct which hold information about an error that occured at a specific position. Can hold multiple instances of Error if more that one error occured in the same position.

Fields

position: P::Item::Position

The position where the error occured

errors: Vec<Error<P::Item, P::Range>>

A vector containing specific information on what errors occured at position

Methods

impl<P: Positioner + Clone, S: Stream<Item=P>> ParseError<S>
[src]

fn new(position: P::Position, error: Error<S::Item, S::Range>) -> ParseError<S>

fn empty(position: P::Position) -> ParseError<S>

fn from_errors(position: P::Position, errors: Vec<Error<P, S::Range>>) -> ParseError<S>

fn end_of_input(position: P::Position) -> ParseError<S>

fn add_message<M>(&mut self, message: M) where M: Into<Info<P, S::Range>>

fn add_error(&mut self, message: Error<P, S::Range>)

fn set_expected(&mut self, message: Info<P, S::Range>)

fn merge(self, other: ParseError<S>) -> ParseError<S>

Trait Implementations

impl<S> StdError for ParseError<S> where S: Stream, S::Range: Display + Debug + Any, S::Item: Display + Debug + Any, S::Item::Position: Display + Debug + Any
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

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

impl<S> PartialEq for ParseError<S> where S: Stream, S::Item::Position: PartialEq
[src]

fn eq(&self, other: &ParseError<S>) -> bool

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

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<S> Debug for ParseError<S> where S: Stream, S::Range: Debug, S::Item: Debug, S::Item::Position: Debug
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<S> Display for ParseError<S> where S: Stream, S::Item: Display, S::Range: Display, S::Item::Position: Display
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.