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]
impl ParseError
Trait Implementations
impl Debug for ParseError
[src]
impl Debug for ParseError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ParseError
[src]
impl PartialEq for ParseError
fn eq(&self, other: &ParseError) -> bool
[src]
fn eq(&self, other: &ParseError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ParseError) -> bool
[src]
fn ne(&self, other: &ParseError) -> bool
This method tests for !=
.
impl Error for ParseError
[src]
impl Error for ParseError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for ParseError
[src]
impl Display for ParseError
Auto Trait Implementations
impl Send for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Sync for ParseError