Struct parser_combinators::primitives::ParseError [] [src]

pub struct ParseError {
    pub position: SourcePosition,
    pub errors: Vec<Error>,
}

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 at the position.

Fields

position: SourcePosition

The position where the error occured

errors: Vec<Error>

A vector containing specific information on what errors occured at position

Methods

impl ParseError
[src]

fn new(position: SourcePosition, error: Error) -> ParseError

fn from_errors(position: SourcePosition, errors: Vec<Error>) -> ParseError

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

fn add_error(&mut self, message: Error)

fn set_expected(&mut self, message: Info)

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

Trait Implementations

impl PartialEq for ParseError
[src]

fn eq(&self, __arg_0: &ParseError) -> bool

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

fn ne(&self, __arg_0: &ParseError) -> bool

This method tests for !=.

impl Debug for ParseError
[src]

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

Formats the value using the given formatter.

impl StdError for ParseError
[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 Display for ParseError
[src]

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

Formats the value using the given formatter.