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: usize

The low byte at which this error is pointing at.

hi: usize

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

desc: String

A human-readable description explaining what the error is.

Trait Implementations

impl Debug for ParserError
[src]

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

Formats the value using the given formatter.

impl Error for ParserError
[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 ParserError
[src]

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

Formats the value using the given formatter.