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

When parsing an invalid character at the start of a token.

When parsing an unknown keyword (e.g. "foo").

When lexing an unexpected character.

When parsing an unexpected token.

When detecting an unexpected end of file.

When tried to parse an empty string.

When parsing an unknown SAT extension.

When the parser is not at the end of file when finished parsing.

When a natural number was expected but not found.

When a literal was expected but not found.

Trait Implementations

impl Debug for ErrorKind
[src]

Formats the value using the given formatter.

impl Copy for ErrorKind
[src]

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ErrorKind
[src]