Struct mg_settings::error::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]
fn new(
typ: ErrorType,
unexpected: String,
expected: String,
pos: Pos
) -> ParseError
typ: ErrorType,
unexpected: String,
expected: String,
pos: Pos
) -> ParseError
Create a new error.
Trait Implementations
impl Debug for ParseError[src]
impl PartialEq for ParseError[src]
fn eq(&self, __arg_0: &ParseError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
This method tests for !=.
impl Display for ParseError[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more