Document config ParsingError.

This commit is contained in:
Sergio Benitez 2016-12-20 17:27:46 -08:00
parent 0acb9eab83
commit c61e40f5a3
1 changed files with 4 additions and 0 deletions

View File

@ -6,9 +6,13 @@ use term_painter::ToStyle;
/// The type of a configuration parsing error.
#[derive(Debug, PartialEq, Clone)]
pub struct ParsingError {
/// Start and end byte indices into the source code where parsing failed.
pub byte_range: (usize, usize),
/// The (line, column) in the source code where parsing failure began.
pub start: (usize, usize),
/// The (line, column) in the source code where parsing failure ended.
pub end: (usize, usize),
/// A description of the parsing error that occured.
pub desc: String,
}