pub struct ParserError {
    pub msg: String,
    pub line_num: Option<usize>,
}
Expand description

A struct representing the output of a parsing error.

Fields

msg: String

A message describing the parsing error.

line_num: Option<usize>

The line number the error occured on. This will always be the Some variant unless there was an issue with the file as a whole, in which case the None variant will be returned.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.