Struct mg_settings::errors::ParseError
[−]
[src]
pub struct ParseError { pub expected: String, pub typ: ErrorType, pub unexpected: String, // some fields omitted }
Struct which holds information about an error at a specific position.
Fields
expected: String
The expected token.
typ: ErrorType
The error type.
unexpected: String
The unexpected token.
Methods
impl ParseError
[src]
pub fn new(
typ: ErrorType,
unexpected: String,
expected: String,
pos: Pos
) -> Error
[src]
typ: ErrorType,
unexpected: String,
expected: String,
pos: Pos
) -> Error
Create a new error.
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 !=
.