Struct toml::ParserError [] [src]

pub struct ParserError {
    pub lo: usize,
    pub hi: usize,
    pub desc: String,
}

A structure representing a parse error.

The data in this structure can be used to trace back to the original cause of the error in order to provide diagnostics about parse errors.

Fields

lo

The low byte at which this error is pointing at.

hi

One byte beyond the last character at which this error is pointing at.

desc

A human-readable description explaining what the error is.

Trait Implementations

impl Error for ParserError

fn description(&self) -> &str

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

impl Display for ParserError

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

Derived Implementations

impl Clone for ParserError

fn clone(&self) -> ParserError

fn clone_from(&mut self, source: &Self)

impl Debug for ParserError

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