Enum dimacs::ErrorKind
[−]
[src]
pub enum ErrorKind { InvalidTokenStart, UnknownKeyword, UnexpectedChar, UnexpectedToken, UnexpectedEndOfFile, EmptyTokenStream, InvalidSatExtension, NotParsedToEnd, ExpectedNat, ExpectedLit, }
Different kinds of errors that may occure while parsing.
Variants
InvalidTokenStart
When parsing an invalid character at the start of a token.
UnknownKeyword
When parsing an unknown keyword (e.g. "foo").
UnexpectedChar
When lexing an unexpected character.
UnexpectedToken
When parsing an unexpected token.
UnexpectedEndOfFile
When detecting an unexpected end of file.
EmptyTokenStream
When tried to parse an empty string.
InvalidSatExtension
When parsing an unknown SAT extension.
NotParsedToEnd
When the parser is not at the end of file when finished parsing.
ExpectedNat
When a natural number was expected but not found.
ExpectedLit
When a literal was expected but not found.
Trait Implementations
impl Debug for ErrorKind
[src]
impl Copy for ErrorKind
[src]
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
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 ErrorKind
[src]
fn eq(&self, __arg_0: &ErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.