Struct mediawiki_parser::ParseError
[−]
[src]
pub struct ParseError { pub position: Position, pub expected: Vec<String>, pub context: Vec<String>, pub context_start: usize, pub context_end: usize, }
The parser error with source code context.
Fields
position: Position
expected: Vec<String>
context: Vec<String>
context_start: usize
context_end: usize
Methods
impl ParseError
[src]
Trait Implementations
impl Debug for ParseError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ParseError
[src]
fn eq(&self, __arg_0: &ParseError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
[src]
This method tests for !=
.
impl Error for ParseError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more