Struct dimacs::ParseError
[−]
[src]
pub struct ParseError { pub loc: Loc, pub kind: ErrorKind, }
Represents an error that occured while parsing.
Fields
loc: Loc
The source location (line + column) of the error.
kind: ErrorKind
The kind of the error that occured.
Methods
impl ParseError
[src]
fn new(loc: Loc, kind: ErrorKind) -> Self
Creates a new parser error at the given source location with the given error kind.
Trait Implementations
impl Debug for ParseError
[src]
impl Copy for ParseError
[src]
impl Clone for ParseError
[src]
fn clone(&self) -> ParseError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
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 !=
.